Add network field in config file.

pull/27/head
V2Ray 2015-09-21 17:52:58 +02:00
parent e2bd6abb04
commit 79ffd818b2
2 changed files with 3 additions and 2 deletions

View File

@ -31,7 +31,7 @@ func TestVMessInAndOut(t *testing.T) {
}, },
OutboundConfigValue: &mocks.ConnectionConfig{ OutboundConfigValue: &mocks.ConnectionConfig{
ProtocolValue: "vmess", ProtocolValue: "vmess",
ContentValue: []byte("{\"vnext\":[{\"address\": \"127.0.0.1\", \"port\": 13829, \"users\":[{\"id\": \"ad937d9d-6e23-4a5a-ba23-bce5092a7c51\"}]}]}"), ContentValue: []byte("{\"vnext\":[{\"address\": \"127.0.0.1\", \"network\": \"tcp\", \"port\": 13829, \"users\":[{\"id\": \"ad937d9d-6e23-4a5a-ba23-bce5092a7c51\"}]}]}"),
}, },
} }

View File

@ -5,7 +5,8 @@
"port": 27183, "port": 27183,
"users": [ "users": [
{"id": "ad937d9d-6e23-4a5a-ba23-bce5092a7c51"} {"id": "ad937d9d-6e23-4a5a-ba23-bce5092a7c51"}
] ],
"network": "tcp"
} }
] ]
} }