1
0
mirror of https://github.com/v2fly/v2ray-core.git synced 2025-10-18 06:54:02 -04:00

support domain as host in VMess outbound config.

This commit is contained in:
Darien Raymond
2015-12-09 11:20:59 +00:00
parent bc144248e2
commit ed09b4ea6a
5 changed files with 103 additions and 15 deletions

View File

@@ -42,7 +42,7 @@ func TestDokodemoTCP(t *testing.T) {
InboundConfigValue: &mocks.ConnectionConfig{
ProtocolValue: "dokodemo-door",
SettingsValue: &json.DokodemoConfig{
Host: "127.0.0.1",
Host: v2netjson.NewIPHost(net.ParseIP("127.0.0.1")),
Port: port,
NetworkList: &networkList,
TimeoutValue: 0,
@@ -104,7 +104,7 @@ func TestDokodemoUDP(t *testing.T) {
InboundConfigValue: &mocks.ConnectionConfig{
ProtocolValue: "dokodemo-door",
SettingsValue: &json.DokodemoConfig{
Host: "127.0.0.1",
Host: v2netjson.NewIPHost(net.ParseIP("127.0.0.1")),
Port: port,
NetworkList: &networkList,
TimeoutValue: 0,