1
0
mirror of https://github.com/v2fly/v2ray-core.git synced 2026-05-02 10:39:09 -04:00

test case for on demand detour

This commit is contained in:
Darien Raymond
2016-01-21 16:22:56 +00:00
parent e346f179d2
commit d8c6102638
9 changed files with 32 additions and 15 deletions

View File

@@ -14,7 +14,12 @@
"level": 1,
"alterId": 10
}
]
],
"features": {
"detour": {
"to": "detour"
}
}
}
},
"outbound": {
@@ -25,6 +30,7 @@
{
"protocol": "vmess",
"port": "50005-50009",
"tag": "detour",
"settings": {
"clients": [
{

View File

@@ -33,7 +33,7 @@ func TestTCPConnection(t *testing.T) {
socksPort := v2net.Port(50000)
for i := 0; i < 10; i++ {
for i := 0; i < 100; i++ {
conn, err := net.DialTCP("tcp", nil, &net.TCPAddr{
IP: []byte{127, 0, 0, 1},
Port: int(socksPort),