1
0
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:
Shelikhoo 2021-09-05 10:40:06 +01:00
parent 1f70ab99e8
commit 9b883af99c
No known key found for this signature in database
GPG Key ID: C4D5E79D22B25316
2 changed files with 13 additions and 0 deletions

View File

@ -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")
}))
}

View File

@ -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";
}