add interface for socks config

This commit is contained in:
v2ray committed 2015-12-03 22:41:06 +01:00
1 parent 73807390f1
commit f69b83f3e6
9 files changed
+32 -14

No files matched your search

+2 -2
View File
@@ -106,7 +106,7 @@ func setUpV2Ray(routing func(v2net.Destination) bool) (v2net.Port, v2net.Port, e
ProtocolValue: "socks",
SettingsValue: &socksjson.SocksConfig{
AuthMethod: "noauth",
UDPEnabled: true,
UDP: true,
HostIP: socksjson.IPAddress(net.IPv4(127, 0, 0, 1)),
},
},
@@ -131,7 +131,7 @@ func setUpV2Ray(routing func(v2net.Destination) bool) (v2net.Port, v2net.Port, e
ProtocolValue: "socks",
SettingsValue: &socksjson.SocksConfig{
AuthMethod: "noauth",
UDPEnabled: false,
UDP: false,
HostIP: socksjson.IPAddress(net.IPv4(127, 0, 0, 1)),
},
},