Browse Source

Add network field in config file.

pull/27/head
V2Ray 9 years ago
parent
commit
79ffd818b2
  1. 2
      proxy/vmess/vmess_test.go
  2. 3
      release/config/out_vmess.json

2
proxy/vmess/vmess_test.go

@ -31,7 +31,7 @@ func TestVMessInAndOut(t *testing.T) {
},
OutboundConfigValue: &mocks.ConnectionConfig{
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\"}]}]}"),
},
}

3
release/config/out_vmess.json

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

Loading…
Cancel
Save