NekoBoxForAndroid icon indicating copy to clipboard operation
NekoBoxForAndroid copied to clipboard

BUG: "detour" tag is missing when using front proxy for group

Open smsalehi opened this issue 1 year ago • 0 comments

Assume we have three groups:

  1. Main (without front proxy)
  2. Vless (front proxy that is a member of the Main group)
  3. SS (front proxy that is a member of the Vless group)

When I connect to one of the proxies in the SS group, the log shows that the final outbound contains three proxies:

  1. The SS config that I connected to
  2. The front proxy of the SS group (which is a member of the Vless group)
  3. The front proxy of the Vless group (which is a member of the Main group)

I expect the "detour" tag to also appear in the second config and route the traffic through the third config as shown below.

"outbounds": [ { "method": "", "password": "", "server": "", "server_port": 443, "type": "shadowsocks", "domain_strategy": "", "tag": "proxy", "detour": "g-26960" }, { "packet_encoding": "", "server": "", "server_port": , "transport": { "early_data_header_name": "Sec-WebSocket-Protocol", "headers": { "Host": "" }, "max_early_data": 2048, "path": "/vless", "type": "ws" }, "uuid": "", "type": "vless", "domain_strategy": "", "tag": "g-26960"

  "detour": "g-42324" //I expected this tag which is missing

},
{
  "alter_id": 0,
  "packet_encoding": "",
  "security": "auto",
  "server": "",
  "server_port": 443,
  "tls": {
    "enabled": true,
    "insecure": false,
    "server_name": ""
  },
  "transport": {
    "headers": {
      "Host": ""
    },
    "path": "/",
    "type": "ws"
  },
  "uuid": "",
  "type": "vmess",
  "domain_strategy": "",
  "tag": "g-42324"
}

]

smsalehi avatar Jan 26 '24 23:01 smsalehi