diff --git a/proxy/socks/simplified/config.go b/proxy/socks/simplified/config.go index 17f8168f6..6575618e6 100644 --- a/proxy/socks/simplified/config.go +++ b/proxy/socks/simplified/config.go @@ -12,9 +12,10 @@ func init() { common.Must(common.RegisterConfig((*ServerConfig)(nil), func(ctx context.Context, config interface{}) (interface{}, error) { simplifiedServer := config.(*ServerConfig) fullServer := &socks.ServerConfig{ - AuthType: socks.AuthType_NO_AUTH, - Address: simplifiedServer.Address, - UdpEnabled: simplifiedServer.UdpEnabled, + AuthType: socks.AuthType_NO_AUTH, + Address: simplifiedServer.Address, + UdpEnabled: simplifiedServer.UdpEnabled, + PacketEncoding: simplifiedServer.PacketEncoding, } return common.CreateObject(ctx, fullServer) })) diff --git a/proxy/socks/simplified/config.proto b/proxy/socks/simplified/config.proto index 1b97d4492..9076d2166 100644 --- a/proxy/socks/simplified/config.proto +++ b/proxy/socks/simplified/config.proto @@ -8,6 +8,7 @@ option java_multiple_files = true; import "common/protoext/extensions.proto"; import "common/net/address.proto"; +import "common/net/packetaddr/config.proto"; message ServerConfig{ option (v2ray.core.common.protoext.message_opt).type = "inbound"; @@ -15,6 +16,7 @@ message ServerConfig{ v2ray.core.common.net.IPOrDomain address = 3; bool udp_enabled = 4; + v2ray.core.net.packetaddr.PacketAddrType packet_encoding = 7; } message ClientConfig {