mirror of
https://github.com/v2fly/v2ray-core.git
synced 2024-12-30 05:56:54 -05:00
none security config
This commit is contained in:
parent
1f70ab99e8
commit
9b883af99c
@ -128,3 +128,9 @@ func (c *ProxyConfig) HasTag() bool {
|
||||
func (m SocketConfig_TProxyMode) IsEnabled() bool {
|
||||
return m != SocketConfig_Off
|
||||
}
|
||||
|
||||
func init() {
|
||||
common.Must(common.RegisterConfig((*NoneSecurity)(nil), func(ctx context.Context, config interface{}) (interface{}, error) {
|
||||
return nil, newError("none security is a placeholder")
|
||||
}))
|
||||
}
|
||||
|
@ -8,6 +8,8 @@ option java_multiple_files = true;
|
||||
|
||||
import "google/protobuf/any.proto";
|
||||
|
||||
import "common/protoext/extensions.proto";
|
||||
|
||||
enum TransportProtocol {
|
||||
TCP = 0;
|
||||
UDP = 1;
|
||||
@ -94,3 +96,8 @@ message SocketConfig {
|
||||
|
||||
int32 tcp_keep_alive_interval = 8;
|
||||
}
|
||||
|
||||
message NoneSecurity {
|
||||
option (v2ray.core.common.protoext.message_opt).type = "security";
|
||||
option (v2ray.core.common.protoext.message_opt).short_name = "none";
|
||||
}
|
Loading…
Reference in New Issue
Block a user