test case for on demand detour

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

No files matched your search

+7 -1
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": [
{
+1 -1
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),