SagerNet / sing-box

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

sing-box最新的5.0版本在Windows11平台上访问h2相关网页出错 #937

Closed HXHGTS closed 1 year ago

HXHGTS commented 1 year ago

Operating system

Windows

System version

Windows11 22H2

Installation type

Original sing-box Command Line

If you are using a graphical client, please provide the version of the client.

No response

```console sing-box version v1.5.0 Environment: go1.21.0 windows/amd64 Tags: with_quic,with_grpc,with_dhcp,with_wireguard,with_ech,with_utls,with_reality_server,with_gvisor CGO: disabled ```

Description

sing-box最新的5.0版本在Windows11平台上访问h2相关网页,会导致sb核心短暂停止响应,访问http/1.1网页暂未发现问题 相同配置下1.4.6核心无此问题

Reproduction

1.使用sing-box1.5.0核心 2.打开http/2网站(Github、NewBing) 3.核心卡死,问题出现

Logs

```console +0800 2023-09-30 10:58:56 INFO router: loaded geoip database: 259 codes +0800 2023-09-30 10:58:56 INFO router: loaded geosite database: 1423 codes +0800 2023-09-30 10:58:56 INFO router: updated default interface WLAN, index 16 +0800 2023-09-30 10:58:57 INFO outbound/direct[CHINA_OUT]: outbound packet connection to ntp.aliyun.com:123 +0800 2023-09-30 10:58:57 INFO ntp: updated time: 2023-09-30 10:58:56 +0800 +0800 2023-09-30 10:58:57 INFO inbound/http[HTTP-INBOUND]: tcp server started at [::]:10808 +0800 2023-09-30 10:58:57 INFO inbound/socks[SOCKS5-INBOUND]: tcp server started at [::]:10809 +0800 2023-09-30 10:58:57 INFO sing-box started (0.599s) +0800 2023-09-30 11:00:40 INFO [1620666179 0ms] inbound/http[HTTP-INBOUND]: inbound connection from 127.0.0.1:11414 +0800 2023-09-30 11:00:40 INFO [1620666179 0ms] inbound/http[HTTP-INBOUND]: inbound connection to business.bing.com:443 +0800 2023-09-30 11:00:40 INFO [1620666179 0ms] outbound/vless[INTERNET_OUT]: outbound connection to business.bing.com:443 +0800 2023-09-30 11:00:40 INFO [1074853904 0ms] inbound/http[HTTP-INBOUND]: inbound connection from 127.0.0.1:11416 +0800 2023-09-30 11:00:40 INFO [1074853904 0ms] inbound/http[HTTP-INBOUND]: inbound connection to www.bingapis.com:443 +0800 2023-09-30 11:00:40 INFO [1074853904 4ms] outbound/vless[INTERNET_OUT]: outbound connection to www.bingapis.com:443 +0800 2023-09-30 11:00:40 INFO [545025965 0ms] inbound/http[HTTP-INBOUND]: inbound connection from 127.0.0.1:11418 +0800 2023-09-30 11:00:40 INFO [545025965 0ms] inbound/http[HTTP-INBOUND]: inbound connection to browser.events.data.msn.cn:443 +0800 2023-09-30 11:00:40 INFO [545025965 1ms] outbound/direct[CHINA_OUT]: outbound connection to browser.events.data.msn.cn:443 +0800 2023-09-30 11:00:40 INFO [1003620591 0ms] inbound/http[HTTP-INBOUND]: inbound connection from 127.0.0.1:11419 +0800 2023-09-30 11:00:40 INFO [1003620591 0ms] inbound/http[HTTP-INBOUND]: inbound connection to c.msn.cn:443 +0800 2023-09-30 11:00:40 INFO [2927422224 0ms] inbound/http[HTTP-INBOUND]: inbound connection from 127.0.0.1:11420 +0800 2023-09-30 11:00:40 INFO [2927422224 0ms] inbound/http[HTTP-INBOUND]: inbound connection to sb.scorecardresearch.com:443 +0800 2023-09-30 11:00:40 INFO [1003620591 0ms] outbound/direct[CHINA_OUT]: outbound connection to c.msn.cn:443 +0800 2023-09-30 11:00:40 INFO [2927422224 0ms] outbound/vless[INTERNET_OUT]: outbound connection to sb.scorecardresearch.com:443 +0800 2023-09-30 11:00:40 INFO [1220530845 0ms] inbound/http[HTTP-INBOUND]: inbound connection from 127.0.0.1:11422 +0800 2023-09-30 11:00:40 INFO [1220530845 0ms] inbound/http[HTTP-INBOUND]: inbound connection to assets.msn.cn:443 +0800 2023-09-30 11:00:40 INFO [1220530845 0ms] outbound/direct[CHINA_OUT]: outbound connection to assets.msn.cn:443 +0800 2023-09-30 11:00:40 INFO [1100498173 0ms] inbound/http[HTTP-INBOUND]: inbound connection from 127.0.0.1:11423 +0800 2023-09-30 11:00:40 INFO [1100498173 0ms] inbound/http[HTTP-INBOUND]: inbound connection to www.bing.com:443 +0800 2023-09-30 11:00:40 INFO [1100498173 1ms] outbound/vless[INTERNET_OUT]: outbound connection to www.bing.com:443 +0800 2023-09-30 11:00:40 INFO [3962443278 0ms] inbound/http[HTTP-INBOUND]: inbound connection from 127.0.0.1:11428 +0800 2023-09-30 11:00:40 INFO [3962443278 0ms] inbound/http[HTTP-INBOUND]: inbound connection to login.live.com:443 +0800 2023-09-30 11:00:40 INFO [3962443278 0ms] outbound/vless[INTERNET_OUT]: outbound connection to login.live.com:443 +0800 2023-09-30 11:00:40 INFO [2623372729 0ms] inbound/http[HTTP-INBOUND]: inbound connection from 127.0.0.1:11430 +0800 2023-09-30 11:00:41 INFO [2623372729 6ms] inbound/http[HTTP-INBOUND]: inbound connection to login.live.com:443 +0800 2023-09-30 11:00:41 INFO [2623372729 6ms] outbound/vless[INTERNET_OUT]: outbound connection to login.live.com:443 +0800 2023-09-30 11:00:41 INFO [2504323247 0ms] inbound/http[HTTP-INBOUND]: inbound connection from 127.0.0.1:11432 +0800 2023-09-30 11:00:41 INFO [2504323247 0ms] inbound/http[HTTP-INBOUND]: inbound connection to static-ecst.licdn.com:443 +0800 2023-09-30 11:00:41 INFO [2504323247 0ms] outbound/vless[INTERNET_OUT]: outbound connection to static-ecst.licdn.com:443 +0800 2023-09-30 11:00:41 INFO [217194433 0ms] inbound/http[HTTP-INBOUND]: inbound connection from 127.0.0.1:11434 +0800 2023-09-30 11:00:41 INFO [217194433 0ms] inbound/http[HTTP-INBOUND]: inbound connection to business.bing.com:443 +0800 2023-09-30 11:00:41 INFO [217194433 0ms] outbound/vless[INTERNET_OUT]: outbound connection to business.bing.com:443 +0800 2023-09-30 11:00:41 INFO [1620666179 449ms] outbound/vless[INTERNET_OUT]: outbound connection to business.bing.com:443 +0800 2023-09-30 11:00:41 INFO [1074853904 437ms] outbound/vless[INTERNET_OUT]: outbound connection to www.bingapis.com:443 +0800 2023-09-30 11:00:41 INFO [4108016213 0ms] inbound/http[HTTP-INBOUND]: inbound connection from 127.0.0.1:11436 +0800 2023-09-30 11:00:41 INFO [4108016213 0ms] inbound/http[HTTP-INBOUND]: inbound connection to c.bing.com:443 +0800 2023-09-30 11:00:41 INFO [4108016213 0ms] outbound/vless[INTERNET_OUT]: outbound connection to c.bing.com:443 +0800 2023-09-30 11:00:41 INFO [2927422224 440ms] outbound/vless[INTERNET_OUT]: outbound connection to sb.scorecardresearch.com:443 +0800 2023-09-30 11:00:41 INFO [1100498173 480ms] outbound/vless[INTERNET_OUT]: outbound connection to www.bing.com:443 +0800 2023-09-30 11:00:41 INFO [3962443278 427ms] outbound/vless[INTERNET_OUT]: outbound connection to login.live.com:443 +0800 2023-09-30 11:00:41 INFO [2623372729 440ms] outbound/vless[INTERNET_OUT]: outbound connection to login.live.com:443 +0800 2023-09-30 11:00:41 INFO [2504323247 439ms] outbound/vless[INTERNET_OUT]: outbound connection to static-ecst.licdn.com:443 +0800 2023-09-30 11:00:41 INFO [217194433 479ms] outbound/vless[INTERNET_OUT]: outbound connection to business.bing.com:443 +0800 2023-09-30 11:00:41 INFO [4108016213 425ms] outbound/vless[INTERNET_OUT]: outbound connection to c.bing.com:443 +0800 2023-09-30 11:00:41 ERROR [217194433 772ms] inbound/http[HTTP-INBOUND]: process connection from 127.0.0.1:11434: download: write tcp 127.0.0.1:10808->127.0.0.1:11434: wsasend: An established connection was aborted by the software in your host machine. +0800 2023-09-30 11:00:42 INFO [230463224 0ms] inbound/http[HTTP-INBOUND]: inbound connection from 127.0.0.1:11438 +0800 2023-09-30 11:00:42 INFO [230463224 0ms] inbound/http[HTTP-INBOUND]: inbound connection to fp.msedge.net:443 +0800 2023-09-30 11:00:42 INFO [230463224 2ms] outbound/vless[INTERNET_OUT]: outbound connection to fp.msedge.net:443 +0800 2023-09-30 11:00:42 INFO [2597367937 0ms] inbound/http[HTTP-INBOUND]: inbound connection from 127.0.0.1:11440 +0800 2023-09-30 11:00:42 INFO [2597367937 5ms] inbound/http[HTTP-INBOUND]: inbound connection to edge.microsoft.com:443 +0800 2023-09-30 11:00:42 INFO [2597367937 5ms] outbound/vless[INTERNET_OUT]: outbound connection to edge.microsoft.com:443 +0800 2023-09-30 11:00:42 INFO [2836120960 0ms] inbound/http[HTTP-INBOUND]: inbound connection from 127.0.0.1:11442 +0800 2023-09-30 11:00:42 INFO [2836120960 0ms] inbound/http[HTTP-INBOUND]: inbound connection to edge.microsoft.com:443 +0800 2023-09-30 11:00:42 INFO [2836120960 1ms] outbound/vless[INTERNET_OUT]: outbound connection to edge.microsoft.com:443 +0800 2023-09-30 11:00:42 INFO [902744184 0ms] inbound/http[HTTP-INBOUND]: inbound connection from 127.0.0.1:11444 +0800 2023-09-30 11:00:42 INFO [902744184 0ms] inbound/http[HTTP-INBOUND]: inbound connection to a-ring.msedge.net:443 +0800 2023-09-30 11:00:42 INFO [902744184 0ms] outbound/vless[INTERNET_OUT]: outbound connection to a-ring.msedge.net:443 +0800 2023-09-30 11:00:43 INFO [553599730 0ms] inbound/http[HTTP-INBOUND]: inbound connection from 127.0.0.1:11446 +0800 2023-09-30 11:00:43 INFO [553599730 0ms] inbound/http[HTTP-INBOUND]: inbound connection to edge.microsoft.com:443 +0800 2023-09-30 11:00:43 INFO [553599730 13ms] outbound/vless[INTERNET_OUT]: outbound connection to edge.microsoft.com:443 +0800 2023-09-30 11:00:43 INFO [2597367937 430ms] outbound/vless[INTERNET_OUT]: outbound connection to edge.microsoft.com:443 +0800 2023-09-30 11:00:43 INFO [230463224 492ms] outbound/vless[INTERNET_OUT]: outbound connection to fp.msedge.net:443 +0800 2023-09-30 11:00:43 INFO [902744184 434ms] outbound/vless[INTERNET_OUT]: outbound connection to a-ring.msedge.net:443 +0800 2023-09-30 11:00:43 INFO [3824285080 0ms] inbound/http[HTTP-INBOUND]: inbound connection from 127.0.0.1:11448 +0800 2023-09-30 11:00:43 INFO [3824285080 0ms] inbound/http[HTTP-INBOUND]: inbound connection to r.bing.com:443 +0800 2023-09-30 11:00:43 INFO [4045728541 0ms] inbound/http[HTTP-INBOUND]: inbound connection from 127.0.0.1:11449 +0800 2023-09-30 11:00:43 INFO [3144808553 0ms] inbound/http[HTTP-INBOUND]: inbound connection from 127.0.0.1:11450 +0800 2023-09-30 11:00:43 INFO [3824285080 1ms] outbound/vless[INTERNET_OUT]: outbound connection to r.bing.com:443 +0800 2023-09-30 11:00:43 INFO [3144808553 1ms] inbound/http[HTTP-INBOUND]: inbound connection to th.bing.com:443 +0800 2023-09-30 11:00:43 INFO [3144808553 1ms] outbound/vless[INTERNET_OUT]: outbound connection to th.bing.com:443 +0800 2023-09-30 11:00:43 INFO [4045728541 1ms] inbound/http[HTTP-INBOUND]: inbound connection to r.bing.com:443 +0800 2023-09-30 11:00:43 INFO [4045728541 2ms] outbound/vless[INTERNET_OUT]: outbound connection to r.bing.com:443 +0800 2023-09-30 11:00:43 INFO [2836120960 487ms] outbound/vless[INTERNET_OUT]: outbound connection to edge.microsoft.com:443 +0800 2023-09-30 11:00:43 INFO [3382948312 0ms] inbound/http[HTTP-INBOUND]: inbound connection from 127.0.0.1:11454 +0800 2023-09-30 11:00:43 INFO [3382948312 0ms] inbound/http[HTTP-INBOUND]: inbound connection to th.bing.com:443 +0800 2023-09-30 11:00:43 INFO [3382948312 0ms] outbound/vless[INTERNET_OUT]: outbound connection to th.bing.com:443 +0800 2023-09-30 11:00:43 INFO [553599730 459ms] outbound/vless[INTERNET_OUT]: outbound connection to edge.microsoft.com:443 +0800 2023-09-30 11:00:43 INFO [3824285080 435ms] outbound/vless[INTERNET_OUT]: outbound connection to r.bing.com:443 +0800 2023-09-30 11:00:43 INFO [3382948312 433ms] outbound/vless[INTERNET_OUT]: outbound connection to th.bing.com:443 +0800 2023-09-30 11:00:43 INFO [4045728541 454ms] outbound/vless[INTERNET_OUT]: outbound connection to r.bing.com:443 +0800 2023-09-30 11:00:43 INFO [3144808553 488ms] outbound/vless[INTERNET_OUT]: outbound connection to th.bing.com:443 +0800 2023-09-30 11:00:43 ERROR [553599730 719ms] inbound/http[HTTP-INBOUND]: process connection from 127.0.0.1:11446: download: write tcp 127.0.0.1:10808->127.0.0.1:11446: wsasend: An established connection was aborted by the software in your host machine. +0800 2023-09-30 11:00:43 INFO [2565601807 0ms] inbound/http[HTTP-INBOUND]: inbound connection from 127.0.0.1:11456 +0800 2023-09-30 11:00:43 INFO [2565601807 0ms] inbound/http[HTTP-INBOUND]: inbound connection to beacons.gcp.gvt2.com:443 +0800 2023-09-30 11:00:43 INFO [2118371060 0ms] inbound/http[HTTP-INBOUND]: inbound connection from 127.0.0.1:11457 +0800 2023-09-30 11:00:43 INFO [2118371060 0ms] inbound/http[HTTP-INBOUND]: inbound connection to beacons.gcp.gvt2.com:443 +0800 2023-09-30 11:00:43 INFO [2565601807 0ms] outbound/vless[INTERNET_OUT]: outbound connection to beacons.gcp.gvt2.com:443 +0800 2023-09-30 11:00:43 INFO [2118371060 0ms] outbound/vless[INTERNET_OUT]: outbound connection to beacons.gcp.gvt2.com:443 +0800 2023-09-30 11:00:43 INFO [1210448697 0ms] inbound/http[HTTP-INBOUND]: inbound connection from 127.0.0.1:11460 +0800 2023-09-30 11:00:43 INFO [2925845894 0ms] inbound/http[HTTP-INBOUND]: inbound connection from 127.0.0.1:11461 +0800 2023-09-30 11:00:43 INFO [1210448697 1ms] inbound/http[HTTP-INBOUND]: inbound connection to r.bing.com:443 +0800 2023-09-30 11:00:43 INFO [2925845894 1ms] inbound/http[HTTP-INBOUND]: inbound connection to r.bing.com:443 +0800 2023-09-30 11:00:43 INFO [1210448697 1ms] outbound/vless[INTERNET_OUT]: outbound connection to r.bing.com:443 +0800 2023-09-30 11:00:43 INFO [2925845894 1ms] outbound/vless[INTERNET_OUT]: outbound connection to r.bing.com:443 +0800 2023-09-30 11:00:44 INFO [4215723866 0ms] inbound/http[HTTP-INBOUND]: inbound connection from 127.0.0.1:11464 +0800 2023-09-30 11:00:44 INFO [4215723866 0ms] inbound/http[HTTP-INBOUND]: inbound connection to k-ring.msedge.net:443 +0800 2023-09-30 11:00:44 INFO [4215723866 0ms] outbound/vless[INTERNET_OUT]: outbound connection to k-ring.msedge.net:443 +0800 2023-09-30 11:00:44 INFO [2565601807 431ms] outbound/vless[INTERNET_OUT]: outbound connection to beacons.gcp.gvt2.com:443 +0800 2023-09-30 11:00:44 INFO [2118371060 478ms] outbound/vless[INTERNET_OUT]: outbound connection to beacons.gcp.gvt2.com:443 +0800 2023-09-30 11:00:44 INFO [2925845894 426ms] outbound/vless[INTERNET_OUT]: outbound connection to r.bing.com:443 +0800 2023-09-30 11:00:44 INFO [1210448697 438ms] outbound/vless[INTERNET_OUT]: outbound connection to r.bing.com:443 +0800 2023-09-30 11:00:44 INFO [2915420672 0ms] inbound/http[HTTP-INBOUND]: inbound connection from 127.0.0.1:11466 +0800 2023-09-30 11:00:44 INFO [2915420672 5ms] inbound/http[HTTP-INBOUND]: inbound connection to browser.pipe.aria.microsoft.com:443 +0800 2023-09-30 11:00:44 INFO [2915420672 6ms] outbound/vless[INTERNET_OUT]: outbound connection to browser.pipe.aria.microsoft.com:443 +0800 2023-09-30 11:00:44 INFO [4215723866 480ms] outbound/vless[INTERNET_OUT]: outbound connection to k-ring.msedge.net:443 +0800 2023-09-30 11:00:44 ERROR [2925845894 687ms] inbound/http[HTTP-INBOUND]: process connection from 127.0.0.1:11461: download: write tcp 127.0.0.1:10808->127.0.0.1:11461: wsasend: An established connection was aborted by the software in your host machine. +0800 2023-09-30 11:00:44 ERROR [1210448697 699ms] inbound/http[HTTP-INBOUND]: process connection from 127.0.0.1:11460: download: write tcp 127.0.0.1:10808->127.0.0.1:11460: wsasend: An established connection was aborted by the software in your host machine. +0800 2023-09-30 11:00:44 INFO [267425767 0ms] inbound/http[HTTP-INBOUND]: inbound connection from 127.0.0.1:11468 +0800 2023-09-30 11:00:44 INFO [267425767 0ms] inbound/http[HTTP-INBOUND]: inbound connection to www.bing.com:443 +0800 2023-09-30 11:00:44 INFO [267425767 0ms] outbound/vless[INTERNET_OUT]: outbound connection to www.bing.com:443 +0800 2023-09-30 11:00:44 INFO [2915420672 431ms] outbound/vless[INTERNET_OUT]: outbound connection to browser.pipe.aria.microsoft.com:443 +0800 2023-09-30 11:00:45 INFO [267425767 483ms] outbound/vless[INTERNET_OUT]: outbound connection to www.bing.com:443 +0800 2023-09-30 11:00:45 INFO [1381961170 0ms] inbound/http[HTTP-INBOUND]: inbound connection from 127.0.0.1:11470 +0800 2023-09-30 11:00:45 INFO [1381961170 0ms] inbound/http[HTTP-INBOUND]: inbound connection to www.bingapis.com:443 +0800 2023-09-30 11:00:45 INFO [1381961170 0ms] outbound/vless[INTERNET_OUT]: outbound connection to www.bingapis.com:443 +0800 2023-09-30 11:00:45 INFO [180521623 0ms] inbound/http[HTTP-INBOUND]: inbound connection from 127.0.0.1:11472 +0800 2023-09-30 11:00:45 INFO [180521623 0ms] inbound/http[HTTP-INBOUND]: inbound connection to t-ring.msedge.net:443 +0800 2023-09-30 11:00:45 INFO [180521623 0ms] outbound/vless[INTERNET_OUT]: outbound connection to t-ring.msedge.net:443 +0800 2023-09-30 11:00:45 INFO [3514604721 0ms] inbound/http[HTTP-INBOUND]: inbound connection from 127.0.0.1:11474 +0800 2023-09-30 11:00:45 INFO [3514604721 0ms] inbound/http[HTTP-INBOUND]: inbound connection to ntp.msn.cn:443 +0800 2023-09-30 11:00:45 INFO [3514604721 1ms] outbound/direct[CHINA_OUT]: outbound connection to ntp.msn.cn:443 +0800 2023-09-30 11:00:46 INFO [128504793 0ms] inbound/http[HTTP-INBOUND]: inbound connection from 127.0.0.1:11476 +0800 2023-09-30 11:00:46 INFO [128504793 0ms] inbound/http[HTTP-INBOUND]: inbound connection to storage.live.com:443 +0800 2023-09-30 11:00:46 INFO [128504793 0ms] outbound/vless[INTERNET_OUT]: outbound connection to storage.live.com:443 +0800 2023-09-30 11:00:46 INFO [1381961170 484ms] outbound/vless[INTERNET_OUT]: outbound connection to www.bingapis.com:443 +0800 2023-09-30 11:00:46 INFO [180521623 440ms] outbound/vless[INTERNET_OUT]: outbound connection to t-ring.msedge.net:443 +0800 2023-09-30 11:00:46 INFO [526213267 0ms] inbound/http[HTTP-INBOUND]: inbound connection from 127.0.0.1:11478 +0800 2023-09-30 11:00:46 INFO [526213267 0ms] inbound/http[HTTP-INBOUND]: inbound connection to api.msn.cn:443 +0800 2023-09-30 11:00:46 INFO [2589709645 0ms] inbound/http[HTTP-INBOUND]: inbound connection from 127.0.0.1:11479 +0800 2023-09-30 11:00:46 INFO [2589709645 0ms] inbound/http[HTTP-INBOUND]: inbound connection to assets.msn.cn:443 +0800 2023-09-30 11:00:46 INFO [526213267 0ms] outbound/direct[CHINA_OUT]: outbound connection to api.msn.cn:443 +0800 2023-09-30 11:00:46 INFO [2589709645 0ms] outbound/direct[CHINA_OUT]: outbound connection to assets.msn.cn:443 +0800 2023-09-30 11:00:46 INFO [279831557 0ms] inbound/http[HTTP-INBOUND]: inbound connection from 127.0.0.1:11480 +0800 2023-09-30 11:00:46 INFO [279831557 0ms] inbound/http[HTTP-INBOUND]: inbound connection to th.bing.com:443 +0800 2023-09-30 11:00:46 INFO [4034533458 0ms] inbound/http[HTTP-INBOUND]: inbound connection from 127.0.0.1:11481 +0800 2023-09-30 11:00:46 INFO [4034533458 0ms] inbound/http[HTTP-INBOUND]: inbound connection to img-s-msn-com.akamaized.net:443 +0800 2023-09-30 11:00:46 INFO [279831557 0ms] outbound/vless[INTERNET_OUT]: outbound connection to th.bing.com:443 +0800 2023-09-30 11:00:46 INFO [4034533458 0ms] outbound/vless[INTERNET_OUT]: outbound connection to img-s-msn-com.akamaized.net:443 +0800 2023-09-30 11:00:46 INFO [128504793 423ms] outbound/vless[INTERNET_OUT]: outbound connection to storage.live.com:443 +0800 2023-09-30 11:00:46 INFO [4034533458 439ms] outbound/vless[INTERNET_OUT]: outbound connection to img-s-msn-com.akamaized.net:443 +0800 2023-09-30 11:00:46 INFO [279831557 488ms] outbound/vless[INTERNET_OUT]: outbound connection to th.bing.com:443 +0800 2023-09-30 11:00:47 INFO [3738255789 0ms] inbound/http[HTTP-INBOUND]: inbound connection from 127.0.0.1:11486 +0800 2023-09-30 11:00:47 INFO [3738255789 0ms] inbound/http[HTTP-INBOUND]: inbound connection to login.live.com:443 +0800 2023-09-30 11:00:47 INFO [3738255789 4ms] outbound/vless[INTERNET_OUT]: outbound connection to login.live.com:443 +0800 2023-09-30 11:00:47 INFO [3738255789 435ms] outbound/vless[INTERNET_OUT]: outbound connection to login.live.com:443 +0800 2023-09-30 11:00:48 INFO [2849848243 0ms] inbound/http[HTTP-INBOUND]: inbound connection from 127.0.0.1:11488 +0800 2023-09-30 11:00:48 INFO [2849848243 0ms] inbound/http[HTTP-INBOUND]: inbound connection to functional.events.data.microsoft.com:443 +0800 2023-09-30 11:00:48 INFO [2849848243 0ms] outbound/vless[INTERNET_OUT]: outbound connection to functional.events.data.microsoft.com:443 +0800 2023-09-30 11:00:48 INFO [2849848243 496ms] outbound/vless[INTERNET_OUT]: outbound connection to functional.events.data.microsoft.com:443 +0800 2023-09-30 11:00:49 INFO [4253149621 0ms] inbound/http[HTTP-INBOUND]: inbound connection from 127.0.0.1:11490 +0800 2023-09-30 11:00:49 INFO [4253149621 0ms] inbound/http[HTTP-INBOUND]: inbound connection to www2.bing.com:443 +0800 2023-09-30 11:00:49 INFO [4253149621 0ms] outbound/vless[INTERNET_OUT]: outbound connection to www2.bing.com:443 +0800 2023-09-30 11:00:50 INFO [4253149621 448ms] outbound/vless[INTERNET_OUT]: outbound connection to www2.bing.com:443 +0800 2023-09-30 11:00:51 INFO [4168841408 0ms] inbound/http[HTTP-INBOUND]: inbound connection from 127.0.0.1:11492 +0800 2023-09-30 11:00:51 INFO [4168841408 0ms] inbound/http[HTTP-INBOUND]: inbound connection to sydney.bing.com:443 +0800 2023-09-30 11:00:51 INFO [4168841408 0ms] outbound/vless[INTERNET_OUT]: outbound connection to sydney.bing.com:443 +0800 2023-09-30 11:00:52 INFO [4168841408 553ms] outbound/vless[INTERNET_OUT]: outbound connection to sydney.bing.com:443 +0800 2023-09-30 11:00:53 INFO [1724062772 0ms] inbound/http[HTTP-INBOUND]: inbound connection from 127.0.0.1:11495 +0800 2023-09-30 11:00:53 INFO [1724062772 0ms] inbound/http[HTTP-INBOUND]: inbound connection to services.bingapis.com:443 +0800 2023-09-30 11:00:53 INFO [1724062772 0ms] outbound/vless[INTERNET_OUT]: outbound connection to services.bingapis.com:443 +0800 2023-09-30 11:00:54 INFO [1724062772 465ms] outbound/vless[INTERNET_OUT]: outbound connection to services.bingapis.com:443 +0800 2023-09-30 11:00:55 INFO [458701666 0ms] inbound/http[HTTP-INBOUND]: inbound connection from 127.0.0.1:11497 +0800 2023-09-30 11:00:55 INFO [458701666 0ms] inbound/http[HTTP-INBOUND]: inbound connection to edgeservices.bing.com:443 +0800 2023-09-30 11:00:55 INFO [458701666 0ms] outbound/vless[INTERNET_OUT]: outbound connection to edgeservices.bing.com:443 +0800 2023-09-30 11:00:56 INFO [458701666 436ms] outbound/vless[INTERNET_OUT]: outbound connection to edgeservices.bing.com:443 +0800 2023-09-30 11:00:56 INFO [2436866720 0ms] inbound/socks[SOCKS5-INBOUND]: inbound connection from 127.0.0.1:11499 +0800 2023-09-30 11:00:56 INFO [3589887989 0ms] inbound/http[HTTP-INBOUND]: inbound connection from 127.0.0.1:11500 +0800 2023-09-30 11:00:56 INFO [3589887989 0ms] inbound/http[HTTP-INBOUND]: inbound connection to www.bingapis.com:443 +0800 2023-09-30 11:00:56 INFO [3589887989 0ms] outbound/vless[INTERNET_OUT]: outbound connection to www.bingapis.com:443 +0800 2023-09-30 11:00:57 INFO router: loaded geoip database: 259 codes +0800 2023-09-30 11:00:57 INFO router: loaded geosite database: 1423 codes +0800 2023-09-30 11:00:57 INFO router: updated default interface WLAN, index 16 +0800 2023-09-30 11:00:57 INFO outbound/direct[CHINA_OUT]: outbound packet connection to ntp.aliyun.com:123 +0800 2023-09-30 11:00:58 INFO ntp: updated time: 2023-09-30 11:00:56 +0800 +0800 2023-09-30 11:00:58 INFO inbound/http[HTTP-INBOUND]: tcp server started at [::]:10808 +0800 2023-09-30 11:00:58 INFO inbound/socks[SOCKS5-INBOUND]: tcp server started at [::]:10809 +0800 2023-09-30 11:00:58 INFO sing-box started (0.655s) +0800 2023-09-30 11:00:58 INFO [450540962 0ms] inbound/socks[SOCKS5-INBOUND]: inbound connection from 127.0.0.1:11507 +0800 2023-09-30 11:00:58 INFO router: loaded geoip database: 259 codes +0800 2023-09-30 11:00:58 INFO router: loaded geosite database: 1423 codes +0800 2023-09-30 11:00:58 INFO router: updated default interface WLAN, index 16 +0800 2023-09-30 11:00:59 INFO outbound/direct[CHINA_OUT]: outbound packet connection to ntp.aliyun.com:123 +0800 2023-09-30 11:00:59 INFO ntp: updated time: 2023-09-30 11:00:58 +0800 +0800 2023-09-30 11:00:59 INFO inbound/http[HTTP-INBOUND]: tcp server started at [::]:10808 +0800 2023-09-30 11:00:59 INFO inbound/socks[SOCKS5-INBOUND]: tcp server started at [::]:10809 +0800 2023-09-30 11:00:59 INFO sing-box started (0.600s) +0800 2023-09-30 11:00:59 INFO [3440385725 0ms] inbound/socks[SOCKS5-INBOUND]: inbound connection from 127.0.0.1:11513 +0800 2023-09-30 11:00:59 INFO router: loaded geoip database: 259 codes +0800 2023-09-30 11:00:59 INFO router: loaded geosite database: 1423 codes +0800 2023-09-30 11:00:59 INFO router: updated default interface WLAN, index 16 +0800 2023-09-30 11:01:00 INFO outbound/direct[CHINA_OUT]: outbound packet connection to ntp.aliyun.com:123 +0800 2023-09-30 11:01:00 INFO ntp: updated time: 2023-09-30 11:00:59 +0800 +0800 2023-09-30 11:01:00 INFO inbound/http[HTTP-INBOUND]: tcp server started at [::]:10808 +0800 2023-09-30 11:01:00 INFO inbound/socks[SOCKS5-INBOUND]: tcp server started at [::]:10809 +0800 2023-09-30 11:01:00 INFO sing-box started (0.599s) +0800 2023-09-30 11:01:00 INFO [2654826371 0ms] inbound/http[HTTP-INBOUND]: inbound connection from 127.0.0.1:11512 +0800 2023-09-30 11:01:00 INFO [2654826371 0ms] inbound/http[HTTP-INBOUND]: inbound connection to services.bingapis.com:443 +0800 2023-09-30 11:01:00 INFO [2654826371 0ms] outbound/vless[INTERNET_OUT]: outbound connection to services.bingapis.com:443 +0800 2023-09-30 11:01:00 INFO [3188167516 0ms] inbound/http[HTTP-INBOUND]: inbound connection from 127.0.0.1:11519 +0800 2023-09-30 11:01:00 INFO [3188167516 0ms] inbound/http[HTTP-INBOUND]: inbound connection to www.bing.com:443 +0800 2023-09-30 11:01:00 INFO [3188167516 0ms] outbound/vless[INTERNET_OUT]: outbound connection to www.bing.com:443 +0800 2023-09-30 11:01:00 INFO [4114896482 0ms] inbound/socks[SOCKS5-INBOUND]: inbound connection from 127.0.0.1:11520 +0800 2023-09-30 11:01:01 INFO router: loaded geoip database: 259 codes +0800 2023-09-30 11:01:01 INFO router: loaded geosite database: 1423 codes +0800 2023-09-30 11:01:01 INFO router: updated default interface WLAN, index 16 +0800 2023-09-30 11:01:01 INFO outbound/direct[CHINA_OUT]: outbound packet connection to ntp.aliyun.com:123 +0800 2023-09-30 11:01:02 INFO ntp: updated time: 2023-09-30 11:01:01 +0800 +0800 2023-09-30 11:01:02 INFO inbound/http[HTTP-INBOUND]: tcp server started at [::]:10808 +0800 2023-09-30 11:01:02 INFO inbound/socks[SOCKS5-INBOUND]: tcp server started at [::]:10809 +0800 2023-09-30 11:01:02 INFO sing-box started (0.599s) +0800 2023-09-30 11:01:02 INFO [1355025558 0ms] inbound/http[HTTP-INBOUND]: inbound connection from 127.0.0.1:11525 +0800 2023-09-30 11:01:02 INFO [3287185039 0ms] inbound/http[HTTP-INBOUND]: inbound connection from 127.0.0.1:11526 +0800 2023-09-30 11:01:02 INFO [1355025558 0ms] inbound/http[HTTP-INBOUND]: inbound connection to services.bingapis.com:443 +0800 2023-09-30 11:01:02 INFO [3287185039 0ms] inbound/http[HTTP-INBOUND]: inbound connection to www.bing.com:443 +0800 2023-09-30 11:01:02 INFO [1355025558 0ms] outbound/vless[INTERNET_OUT]: outbound connection to services.bingapis.com:443 +0800 2023-09-30 11:01:02 INFO [3287185039 0ms] outbound/vless[INTERNET_OUT]: outbound connection to www.bing.com:443 +0800 2023-09-30 11:01:02 INFO [1149281888 0ms] inbound/http[HTTP-INBOUND]: inbound connection from 127.0.0.1:11527 +0800 2023-09-30 11:01:02 INFO [1149281888 0ms] inbound/http[HTTP-INBOUND]: inbound connection to services.bingapis.com:443 +0800 2023-09-30 11:01:02 INFO [1149281888 0ms] outbound/vless[INTERNET_OUT]: outbound connection to services.bingapis.com:443 +0800 2023-09-30 11:01:02 INFO [592364460 0ms] inbound/http[HTTP-INBOUND]: inbound connection from 127.0.0.1:11528 +0800 2023-09-30 11:01:02 INFO [592364460 0ms] inbound/http[HTTP-INBOUND]: inbound connection to www.bing.com:443 +0800 2023-09-30 11:01:02 INFO [592364460 0ms] outbound/vless[INTERNET_OUT]: outbound connection to www.bing.com:443 +0800 2023-09-30 11:01:02 INFO [3287185039 472ms] outbound/vless[INTERNET_OUT]: outbound connection to www.bing.com:443 +0800 2023-09-30 11:01:02 INFO [1355025558 472ms] outbound/vless[INTERNET_OUT]: outbound connection to services.bingapis.com:443 +0800 2023-09-30 11:01:02 INFO [1149281888 450ms] outbound/vless[INTERNET_OUT]: outbound connection to services.bingapis.com:443 +0800 2023-09-30 11:01:02 INFO [592364460 443ms] outbound/vless[INTERNET_OUT]: outbound connection to www.bing.com:443 +0800 2023-09-30 11:01:05 INFO [3114257621 0ms] inbound/http[HTTP-INBOUND]: inbound connection from 127.0.0.1:11535 +0800 2023-09-30 11:01:05 INFO [3114257621 0ms] inbound/http[HTTP-INBOUND]: inbound connection to www.bingapis.com:443 +0800 2023-09-30 11:01:05 INFO [3114257621 0ms] outbound/vless[INTERNET_OUT]: outbound connection to www.bingapis.com:443 +0800 2023-09-30 11:01:05 INFO [1310763594 0ms] inbound/socks[SOCKS5-INBOUND]: inbound connection from 127.0.0.1:11538 +0800 2023-09-30 11:01:06 INFO router: loaded geoip database: 259 codes +0800 2023-09-30 11:01:06 INFO router: loaded geosite database: 1423 codes +0800 2023-09-30 11:01:06 INFO router: updated default interface WLAN, index 16 +0800 2023-09-30 11:01:06 INFO outbound/direct[CHINA_OUT]: outbound packet connection to ntp.aliyun.com:123 +0800 2023-09-30 11:01:06 INFO ntp: updated time: 2023-09-30 11:01:05 +0800 +0800 2023-09-30 11:01:06 INFO inbound/http[HTTP-INBOUND]: tcp server started at [::]:10808 +0800 2023-09-30 11:01:06 INFO inbound/socks[SOCKS5-INBOUND]: tcp server started at [::]:10809 +0800 2023-09-30 11:01:06 INFO sing-box started (0.577s) +0800 2023-09-30 11:01:06 INFO [2833714580 0ms] inbound/socks[SOCKS5-INBOUND]: inbound connection from 127.0.0.1:11542 +0800 2023-09-30 11:01:07 INFO router: loaded geoip database: 259 codes +0800 2023-09-30 11:01:07 INFO router: loaded geosite database: 1423 codes +0800 2023-09-30 11:01:07 INFO router: updated default interface WLAN, index 16 +0800 2023-09-30 11:01:07 INFO outbound/direct[CHINA_OUT]: outbound packet connection to ntp.aliyun.com:123 +0800 2023-09-30 11:01:08 INFO ntp: updated time: 2023-09-30 11:01:07 +0800 +0800 2023-09-30 11:01:08 INFO inbound/http[HTTP-INBOUND]: tcp server started at [::]:10808 +0800 2023-09-30 11:01:08 INFO inbound/socks[SOCKS5-INBOUND]: tcp server started at [::]:10809 +0800 2023-09-30 11:01:08 INFO sing-box started (0.699s) +0800 2023-09-30 11:01:08 INFO [1781657551 0ms] inbound/socks[SOCKS5-INBOUND]: inbound connection from 127.0.0.1:11549 +0800 2023-09-30 11:01:08 INFO router: loaded geoip database: 259 codes +0800 2023-09-30 11:01:08 INFO router: loaded geosite database: 1423 codes +0800 2023-09-30 11:01:08 INFO router: updated default interface WLAN, index 16 +0800 2023-09-30 11:01:09 INFO outbound/direct[CHINA_OUT]: outbound packet connection to ntp.aliyun.com:123 +0800 2023-09-30 11:01:09 INFO ntp: updated time: 2023-09-30 11:01:08 +0800 +0800 2023-09-30 11:01:09 INFO inbound/http[HTTP-INBOUND]: tcp server started at [::]:10808 +0800 2023-09-30 11:01:09 INFO inbound/socks[SOCKS5-INBOUND]: tcp server started at [::]:10809 +0800 2023-09-30 11:01:09 INFO sing-box started (0.588s) +0800 2023-09-30 11:01:09 INFO [520777939 0ms] inbound/http[HTTP-INBOUND]: inbound connection from 127.0.0.1:11550 +0800 2023-09-30 11:01:09 INFO [520777939 0ms] inbound/http[HTTP-INBOUND]: inbound connection to services.bingapis.com:443 +0800 2023-09-30 11:01:09 INFO [520777939 0ms] outbound/vless[INTERNET_OUT]: outbound connection to services.bingapis.com:443 +0800 2023-09-30 11:01:09 INFO [379607864 0ms] inbound/socks[SOCKS5-INBOUND]: inbound connection from 127.0.0.1:11561 +0800 2023-09-30 11:01:09 INFO router: loaded geoip database: 259 codes +0800 2023-09-30 11:01:09 INFO router: loaded geosite database: 1423 codes +0800 2023-09-30 11:01:09 INFO router: updated default interface WLAN, index 16 +0800 2023-09-30 11:01:10 INFO outbound/direct[CHINA_OUT]: outbound packet connection to ntp.aliyun.com:123 ```
HXHGTS commented 1 year ago

日志中可以明显看到sing-box有自动重启的情况,是在访问NewBing以后稳定出现的 协议采用了vless+xtls+reality,其它协议目前未测试

Oliver-Yue commented 1 year ago

我这边也是1.5.0,win11使用reality访问newbing一切正常。你再补充一下客户端和服务端可复现问题的最简配置吧。还有就是你按照issue要求排版一下,你现在这个看起来有点乱

HXHGTS commented 1 year ago

服务器配置:

{
    "inbounds":[
        {
            "type":"vless",
            "tag":"VLESS-TCP-XTLS-REALITY-INBOUND",
            "listen":"::",
            "listen_port":443,
            "sniff":true,
            "sniff_override_destination":true,
            "sniff_timeout":"300ms",
            "users":[
                {
                    "uuid":"<UUID>",
                    "flow":"xtls-rprx-vision"
                }
            ],
            "tls":{
                "enabled":true,
                "server_name":"xxx",
                "reality":{
                    "enabled":true,
                    "handshake":{
                        "server":"xxx",
                        "server_port":443
                    },
                    "private_key":"xxx",
                    "short_id":[
                        ""
                    ]
                }
            }
        }
    ],
    "outbounds":[
        {
            "tag":"DNS-OUTBOUND",
            "type":"dns"
        },
        {
            "tag":"GOOGLE_OUT",
            "type":"direct",
            "domain_strategy":"prefer_ipv4"
        },
        {
            "tag":"INTERNET_OUT",
            "type":"direct"
        }
    ],
    "route":{
        "geosite":{
            "download_url":"https://github.com/soffchen/sing-geosite/releases/latest/download/geosite.db",
            "download_detour":"INTERNET_OUT"
        },
        "geoip":{
            "download_url":"https://github.com/soffchen/sing-geoip/releases/latest/download/geoip.db",
            "download_detour":"INTERNET_OUT"
        },
        "rules":[
            {
                "inbound":[
                    "VLESS-TCP-XTLS-REALITY-INBOUND"
                ],
                "port":[
                    53,
                    5353,
                    9953
                ],
                "protocol":[
                    "dns"
                ],
                "outbound":"DNS-OUTBOUND"
            },
            {
                "geosite":[
                    "google"
                ],
                "outbound":"GOOGLE_OUT"
            },
            {
                "geoip":[
                    "google"
                ],
                "outbound":"GOOGLE_OUT"
            }
        ],
        "final":"INTERNET_OUT",
        "auto_detect_interface":true
    },
    "dns":{
        "servers":[
            {
                "tag":"LAN-DNS",
                "address":"local",
                "detour":"INTERNET_OUT"
            }
        ],
        "rules":[

        ],
        "final":"",
        "reverse_mapping":true
    }
}
HXHGTS commented 1 year ago

客户端配置

{
    "inbounds":[
        {
            "type":"http",
            "tag":"HTTP-INBOUND",
            "listen":"::",
            "listen_port":10808,
            "sniff":true,
            "sniff_override_destination":true,
            "sniff_timeout":"300ms"
        },
        {
            "type":"socks",
            "tag":"SOCKS5-INBOUND",
            "listen":"::",
            "listen_port":10809,
            "sniff":true,
            "sniff_override_destination":true,
            "sniff_timeout":"300ms"
        }
    ],
    "outbounds":[
        {
            "type":"dns",
            "tag":"DNS-OUTBOUND"
        },
        {
            "type":"block",
            "tag":"REJECT"
        },
        {
            "tag":"CHINA_OUT",
            "type":"direct"
        },
        {
            "tag":"INTERNET_OUT",
            "type":"vless",
            "server":"<SERVER>",
            "server_port":443,
            "uuid":"<UUID>",
            "flow":"xtls-rprx-vision",
            "tls":{
                "enabled":true,
                "server_name":"x",
                "utls":{
                    "enabled":true,
                    "fingerprint":"chrome"
                },
                "reality":{
                    "enabled":true,
                    "public_key":"xxx",
                    "short_id":""
                }
            },
            "packet_encoding":"xudp"
        }
    ],
    "route":{
        "geosite":{
            "path":".//geosite.db",
            "download_url":"https://github.com/soffchen/sing-geosite/releases/latest/download/geosite.db",
            "download_detour":"INTERNET_OUT"
        },
        "geoip":{
            "path":".//geoip.db",
            "download_url":"https://github.com/soffchen/sing-geoip/releases/latest/download/geoip.db",
            "download_detour":"INTERNET_OUT"
        },
        "rules":[
            {
                "inbound":[
                    "DNS-INBOUND"
                ],
                "outbound":"DNS-OUTBOUND"
            },
            {
                "inbound":[
                    "HTTP-INBOUND",
                    "SOCKS5-INBOUND"
                ],
                "port":[
                    53,
                    5353,
                    9953
                ],
                "protocol":[
                    "dns"
                ],
                "outbound":"DNS-OUTBOUND"
            },
            {
                "domain_suffix":[
                    ".msftncsi.com",
                    ".msftconnecttest.com"
                ],
                "outbound":"INTERNET_OUT"
            },
            {
                "inbound":[
                    "HTTP-INBOUND",
                    "SOCKS5-INBOUND"
                ],
                "domain":[
                    "myip.ipip.net"
                ],
                "outbound":"INTERNET_OUT"
            },
            {
                "geosite":[
                    "bing",
                    "google"
                ],
                "outbound":"INTERNET_OUT"
            },
            {
                "geoip":[
                    "google",
                    "telegram"
                ],
                "outbound":"INTERNET_OUT"
            },
            {
                "domain":[
                    "cn.pool.ntp.org"
                ],
                "geosite":[
                    "bilibili",
                    "win-update",
                    "qihoo360",
                    "alibaba",
                    "jd",
                    "douyu",
                    "huya",
                    "baidu",
                    "iqiyi",
                    "bytedance",
                    "kuaishou",
                    "yuewen",
                    "zhihu",
                    "tencent",
                    "category-bank-cn",
                    "category-dev-cn",
                    "category-documents-cn",
                    "category-education-cn",
                    "category-media-cn",
                    "category-mooc-cn",
                    "category-scholar-cn",
                    "category-securities-cn",
                    "category-social-media-cn",
                    "netease",
                    "oppo",
                    "oneplus",
                    "xiaomi",
                    "huawei",
                    "chinamobile",
                    "chinaunicom",
                    "chinatelecom",
                    "chinabroadnet",
                    "chinaz",
                    "csdn",
                    "kingsoft",
                    "cn",
                    "private"
                ],
                "outbound":"CHINA_OUT"
            },
            {
                "geoip":[
                    "cn",
                    "private"
                ],
                "outbound":"CHINA_OUT"
            }
        ],
        "final":"INTERNET_OUT",
        "auto_detect_interface":true
    },
    "ntp":{
        "enabled":true,
        "server":"ntp.aliyun.com",
        "server_port":123,
        "interval":"60m",
        "detour":"CHINA_OUT"
    },
    "dns":{
        "servers":[
            {
                "tag":"google",
                "address":"udp://8.8.8.8:53",
                "strategy":"prefer_ipv4",
                "detour":"INTERNET_OUT"
            },
            {
                "tag":"isp",
                "address":"local",
                "strategy":"prefer_ipv6",
                "detour":"CHINA_OUT"
            }
        ],
        "rules":[
            {
                "domain_suffix":[
                    ".msftncsi.com",
                    ".msftconnecttest.com"
                ],
                "server":"google"
            },
            {
                "geosite":[
                    "bing",
                    "google"
                ],
                "server":"google"
            },
            {
                "domain":[
                    "cn.pool.ntp.org"
                ],
                "geosite":[
                    "bilibili",
                    "win-update",
                    "qihoo360",
                    "alibaba",
                    "jd",
                    "douyu",
                    "huya",
                    "baidu",
                    "iqiyi",
                    "bytedance",
                    "kuaishou",
                    "yuewen",
                    "zhihu",
                    "tencent",
                    "category-bank-cn",
                    "category-dev-cn",
                    "category-documents-cn",
                    "category-education-cn",
                    "category-media-cn",
                    "category-mooc-cn",
                    "category-scholar-cn",
                    "category-securities-cn",
                    "category-social-media-cn",
                    "netease",
                    "oppo",
                    "oneplus",
                    "xiaomi",
                    "huawei",
                    "chinamobile",
                    "chinaunicom",
                    "chinatelecom",
                    "chinabroadnet",
                    "chinaz",
                    "csdn",
                    "kingsoft",
                    "cn",
                    "private"
                ],
                "server":"isp"
            },
            {
                "outbound":[
                    "CHINA_OUT"
                ],
                "server":"isp"
            }
        ],
        "final":"google",
        "reverse_mapping":true
    }
}
HXHGTS commented 1 year ago

这个问题只在特定的软件版本(v1.5.0以上)才出现,v1.4.6之前是没有的

bingdong700 commented 1 year ago

v2rayN的hy2节点,之前 v2rayN\bin\sing_box\ 为sing-box-1.4.6是没问题的,现在升级到1.5的时候就报错,详情如下

2023/09/30 21:32:47 系统代理设置改变ForcedClear panic: runtime error: invalid memory address or nil pointer dereference [signal 0xc0000005 code=0x0 addr=0x18 pc=0xebb9bc] goroutine 36 [running]: github.com/sagernet/sing/protocol/socks.HandleConnection0({0x16783f8, 0xc00028a9c0}, {0x167f790?, 0xc00007a098}, 0x0?, {0x0, 0x0}, {0x1aaf57f2700?, 0xc000002000}, {{0x0, ...}, ...}) pkg/mod/github.com/sagernet/sing@v0.2.12-0.20230925124400-0531fd63eaba/protocol/socks/handshake.go:113 +0x21c github.com/sagernet/sing/protocol/socks.HandleConnection({0x16783f8, 0xc00028a9c0}, {0x167f790?, 0xc00007a098?}, {0x0, 0x0}, {0x1aaf57f2700, 0xc000002000}, {{0x0, 0x0}, ...}) pkg/mod/github.com/sagernet/sing@v0.2.12-0.20230925124400-0531fd63eaba/protocol/socks/handshake.go:101 +0xff github.com/sagernet/sing-box/inbound.(Socks).NewConnection(, {, }, {, _}, {{0xc0001357c0, 0x5}, {0x14a9539, 0x5}, 0x0, ...}) /Users/sekai/Projects/sing-box/inbound/socks.go:45 +0x353 github.com/sagernet/sing-box/inbound.(myInboundAdapter).injectTCP(, {, _}, {{0xc0001357c0, 0x5}, {0x14a9539, 0x5}, 0x0, {0x0, 0x0}, ...}) /Users/sekai/Projects/sing-box/inbound/default_tcp.go:71 +0x1f8 created by github.com/sagernet/sing-box/inbound.(*myInboundAdapter).loopTCPIn in goroutine 53 /Users/sekai/Projects/sing-box/inbound/default_tcp.go:63 +0x345

2023/09/30 21:32:21 系统代理设置改变ForcedClear panic: runtime error: invalid memory address or nil pointer dereference [signal 0xc0000005 code=0x0 addr=0x18 pc=0xebb9bc] goroutine 50 [running]: github.com/sagernet/sing/protocol/socks.HandleConnection0({0x16783f8, 0xc00028a810}, {0x167f790?, 0xc00060c008}, 0x0?, {0x0, 0x0}, {0x21a6d8a9840?, 0xc0003b2000}, {{0x0, ...}, ...}) pkg/mod/github.com/sagernet/sing@v0.2.12-0.20230925124400-0531fd63eaba/protocol/socks/handshake.go:113 +0x21c github.com/sagernet/sing/protocol/socks.HandleConnection({0x16783f8, 0xc00028a810}, {0x167f790?, 0xc00060c008?}, {0x0, 0x0}, {0x21a6d8a9840, 0xc0003b2000}, {{0x0, 0x0}, ...}) pkg/mod/github.com/sagernet/sing@v0.2.12-0.20230925124400-0531fd63eaba/protocol/socks/handshake.go:101 +0xff github.com/sagernet/sing-box/inbound.(Socks).NewConnection(, {, }, {, _}, {{0xc0001b57c0, 0x5}, {0x14a9539, 0x5}, 0x0, ...}) /Users/sekai/Projects/sing-box/inbound/socks.go:45 +0x353 github.com/sagernet/sing-box/inbound.(myInboundAdapter).injectTCP(, {, _}, {{0xc0001b57c0, 0x5}, {0x14a9539, 0x5}, 0x0, {0x0, 0x0}, ...}) /Users/sekai/Projects/sing-box/inbound/default_tcp.go:71 +0x1f8 created by github.com/sagernet/sing-box/inbound.(*myInboundAdapter).loopTCPIn in goroutine 16 /Users/sekai/Projects/sing-box/inbound/default_tcp.go:63 +0x345

HXHGTS commented 1 year ago

补充一下,v1.6.0-alpha.1已经恢复正常,不太明白问题在哪儿

nekohasekai commented 1 year ago

等待 1.5.1 修复。