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:
@@ -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": [
|
||||
{
|
||||
|
||||
@@ -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),
|
||||
|
||||
Reference in New Issue
Block a user