SagerNet / sing-box

The universal proxy platform
https://sing-box.sagernet.org/
Other
18.82k stars 2.25k forks source link

sing-box 1.2.3 之后版本做客户端无法连接部分节点 #568

Closed debiansid closed 1 year ago

debiansid commented 1 year ago

Welcome

Description of the problem

平台android+tproxy /win tun mode. 客户端升级到1.2.3以后的任意版本,部分节点在yacd-gh-pages页面测试延迟没有数据,实际也无法连接.并且之后的版本延迟大概增加一倍.

Version of sing-box

```console $ sing-box version sing-box version 1.3-beta9-0616c58 Environment: go1.20.3 linux/amd64 Tags: osusergo,netgo,with_grpc,with_quic,with_utls,with_wireguard,with_reality_server Revision: 0616c58306d33cceb7e6d342201e0e80c225d60b CGO: enabled sing-box version 1.2.3 Environment: go1.20.3 android/arm64 Tags: with_quic,with_grpc,with_wireguard,with_ech,with_utls,with_reality_server,with_clash_api,with_gvisor Revision: 72dbf2e2b44d5aced3594da84f412937fb99e7dc CGO: enabled ```

Server and client configuration file

```console same config on both version ```

Server and client log file

```console no abnormal infomation ```
debiansid commented 1 year ago

1.2.3 image

1.3-beta9 image

malikshi commented 1 year ago

indeed the interval in outbound urltest becomes doubles, mine set interval 60s but in box.log urltest check every 120s.

    { 
      "tag": "Best Latency",
      "type": "urltest",
      "outbounds":[
        "BGN Trojan WS",
        "IKD Vmess WS",
        "DMD Vless WS",
        "BGN Trojan gRPC",
        "IKD Vmess gRPC",
        "DMD Vless gRPC"
      ],
      "url": "https://detectportal.firefox.com/success.txt",
      "interval": "60s",
      "tolerance": 0
    }

log, see the log below, it's check the health every 120s, it's should be every 60s

+0700 2023-04-26 10:04:37 DEBUG outbound/urltest[Best Latency]: outbound DMD Vless gRPC available: 339ms
+0700 2023-04-26 10:04:37 DEBUG outbound/urltest[Best Latency]: outbound BGN Trojan gRPC available: 359ms
+0700 2023-04-26 10:04:37 DEBUG outbound/urltest[Best Latency]: outbound IKD Vmess gRPC available: 359ms
+0700 2023-04-26 10:04:37 DEBUG outbound/urltest[Best Latency]: outbound DMD Vless WS available: 461ms
+0700 2023-04-26 10:04:37 DEBUG outbound/urltest[Best Latency]: outbound IKD Vmess WS available: 474ms
+0700 2023-04-26 10:04:37 DEBUG outbound/urltest[Best Latency]: outbound BGN Trojan WS available: 496ms
+0700 2023-04-26 10:06:37 DEBUG outbound/urltest[Best Latency]: outbound BGN Trojan gRPC available: 299ms
+0700 2023-04-26 10:06:37 DEBUG outbound/urltest[Best Latency]: outbound DMD Vless gRPC available: 301ms
+0700 2023-04-26 10:06:37 DEBUG outbound/urltest[Best Latency]: outbound IKD Vmess gRPC available: 318ms
+0700 2023-04-26 10:06:37 DEBUG outbound/urltest[Best Latency]: outbound BGN Trojan WS available: 366ms
+0700 2023-04-26 10:06:37 DEBUG outbound/urltest[Best Latency]: outbound DMD Vless WS available: 384ms
+0700 2023-04-26 10:06:37 DEBUG outbound/urltest[Best Latency]: outbound IKD Vmess WS available: 473ms
+0700 2023-04-26 10:08:37 DEBUG outbound/urltest[Best Latency]: outbound BGN Trojan gRPC available: 256ms
+0700 2023-04-26 10:08:37 DEBUG outbound/urltest[Best Latency]: outbound IKD Vmess gRPC available: 287ms
+0700 2023-04-26 10:08:37 DEBUG outbound/urltest[Best Latency]: outbound DMD Vless gRPC available: 308ms
+0700 2023-04-26 10:08:37 DEBUG outbound/urltest[Best Latency]: outbound BGN Trojan WS available: 391ms
+0700 2023-04-26 10:08:37 DEBUG outbound/urltest[Best Latency]: outbound DMD Vless WS available: 392ms
+0700 2023-04-26 10:08:37 DEBUG outbound/urltest[Best Latency]: outbound IKD Vmess WS available: 494ms
+0700 2023-04-26 10:10:37 DEBUG outbound/urltest[Best Latency]: outbound BGN Trojan gRPC available: 266ms
+0700 2023-04-26 10:10:37 DEBUG outbound/urltest[Best Latency]: outbound IKD Vmess gRPC available: 265ms
+0700 2023-04-26 10:10:37 DEBUG outbound/urltest[Best Latency]: outbound DMD Vless gRPC available: 298ms
+0700 2023-04-26 10:10:37 DEBUG outbound/urltest[Best Latency]: outbound DMD Vless WS available: 385ms
+0700 2023-04-26 10:10:37 DEBUG outbound/urltest[Best Latency]: outbound BGN Trojan WS available: 403ms
+0700 2023-04-26 10:10:37 DEBUG outbound/urltest[Best Latency]: outbound IKD Vmess WS available: 469ms

sorry to mentioned sir @nekohasekai

debiansid commented 1 year ago

I upgrade my server side sing-box to 1.3-beta9 , fixed my issue. might be xudp or mux update caused this