SagerNet / sing-box

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

Windows系统system tun入站后唤醒不正常 #221

Closed covenant-stars closed 1 year ago

covenant-stars commented 1 year ago

Welcome

Description of the problem

singbox tun入站 系统长时间休眠后唤醒无网络 gvisor下唤醒有网络 beta13 dev-next分支正常 beta14 dev-next编译后稳定复现 唤醒后无新日志产生 beta 13 dev分支遇到过相同现象不同日志的情况 为唤醒后大量error抛出

Version of sing-box

$ sing-box version sing-box version 1.1-beta14 Environment: go1.19.3 windows/amd64 Tags: with_gvisor,with_quic,with_wireguard,with_clash_api,with_grpc,with_shadowsocksr,with_ech,with_utls CGO: enabled ### Server and client configuration file { "log": { "disabled": false, "level": "debug", "output": "box.log", "timestamp": true }, "dns": { "servers": [ { "tag": "proxyServerNameServer", "address": "https://120.53.53.53/dns-query", "detour": "proxyServerNameServerOut" }, { "tag": "dnspod", "address": "https://120.53.53.53/dns-query", "detour": "domestic" }, { "tag": "googledns", "address": "tcp://8.8.4.4", "detour": "proxy" }, { "tag": "nxdomain", "address": "RCode://name_error" } ], "rules": [ { "domain_suffix": [ ".virtual-strike.com", ".ptrecord.com", ".amamya.live" ], "server": "proxyServerNameServer", "disable_cache": false }, { "geosite": "category-ads-all", "server": "nxdomain", "disable_cache": false }, { "geosite": [ "bytedance@!cn" ], "server": "googledns", "disable_cache": false }, { "domain_keyword": [ "ntp" ], "domain_regex": [ "(^|\\.)(alt[1-8]-mtalk|mtalk|mtalk4)\\.google\\.com$" ], "geosite": [ "bytedance", "microsoft@cn", "apple@cn", "category-games@cn", "cn" ], "server": "dnspod", "disable_cache": false } ], "final": "googledns", "strategy": "prefer_ipv4", "disable_cache": false, "disable_expire": false }, "inbounds": [ { "tag": "tun", "type": "tun", "interface_name": "tun0", "inet4_address": "172.19.0.1/30", "inet6_address": "fdfe:dcba:9876::1/126", "mtu": 30000, "auto_route": true, "strict_route": true, "stack": "system", "sniff": true, "sniff_override_destination": true } ], "outbounds": [ { "tag": "direct", "type": "direct" }, { "tag": "block", "type": "block" }, { "tag": "dns", "type": "dns" }, { "tag": "proxyServerNameServerOut", "type": "selector", "outbounds": [ "direct" ], "default": "direct" }, { "tag": "proxy", "type": "selector", "outbounds": [ "Proxy", "domestic" ] }, { "tag": "domestic", "type": "selector", "outbounds": [ "direct", "proxy" ] }, { "tag": "Proxy - 中港专线 IPLC E04 1000Mbps", "type": "shadowsocks", "server": "", "server_port": 60967, "method": "rc4-md5", "password": "" }, { "tag": "Proxy", "type": "selector", "outbounds": [ "Proxy - 中港专线 IPLC E04 1000Mbps" ] } ], "route": { "geosite": { "download_detour": "proxy" }, "geoip": { "download_detour": "proxy" }, "rules": [ { "port": 53, "protocol": "dns", "outbound": "dns" }, { "geosite": [ "bytedance@!cn" ], "outbound": "proxy" }, { "domain_keyword": [ "ntp" ], "domain_regex": [ "(^|\\.)(alt[1-8]-mtalk|mtalk|mtalk4)\\.google\\.com$" ], "geosite": [ "bytedance", "microsoft@cn", "apple@cn", "category-games@cn", "cn" ], "outbound": "domestic" }, { "geoip": [ "private", "cn" ], "outbound": "direct" } ], "final": "proxy", "auto_detect_interface": true }, "experimental": { "clash_api": { "external_controller": "127.0.0.1:9909", "external_ui": "dashboard", "secret": "singBox", "store_selected": true } } } ### Server and client log file +0800 2022-11-11 20:42:13 DEBUG [2459828462] inbound/tun[tun]: connection closed: io: read/write on closed pipe | upstream: context canceled +0800 2022-11-11 20:42:13 DEBUG [4293931764] inbound/tun[tun]: connection closed: io: read/write on closed pipe | upstream: context canceled +0800 2022-11-11 20:42:13 DEBUG [1153038973] inbound/tun[tun]: connection closed: io: read/write on closed pipe | upstream: context canceled +0800 2022-11-11 20:42:13 DEBUG [3935056251] inbound/tun[tun]: connection closed: io: read/write on closed pipe | upstream: context canceled +0800 2022-11-11 20:42:13 DEBUG [4110267068] inbound/tun[tun]: connection closed: io: read/write on closed pipe | upstream: context canceled +0800 2022-11-11 20:42:13 DEBUG [3499079933] inbound/tun[tun]: connection closed: io: read/write on closed pipe | upstream: context canceled +0800 2022-11-11 20:42:13 DEBUG [818878527] inbound/tun[tun]: connection closed: io: read/write on closed pipe | upstream: context canceled +0800 2022-11-11 20:42:13 DEBUG [820135037] inbound/tun[tun]: connection closed: io: read/write on closed pipe | upstream: context canceled +0800 2022-11-11 20:42:13 DEBUG [1026360200] inbound/tun[tun]: connection closed: io: read/write on closed pipe | upstream: context canceled +0800 2022-11-11 20:42:13 DEBUG [2860071443] inbound/tun[tun]: connection closed: io: read/write on closed pipe | upstream: context canceled +0800 2022-11-11 20:42:13 DEBUG [2580823733] inbound/tun[tun]: connection closed: io: read/write on closed pipe | upstream: context canceled +0800 2022-11-11 20:42:13 DEBUG [3033549423] inbound/tun[tun]: connection closed: io: read/write on closed pipe | upstream: context canceled +0800 2022-11-11 20:42:13 DEBUG [3345503809] inbound/tun[tun]: connection closed: io: read/write on closed pipe | upstream: context canceled +0800 2022-11-11 20:42:13 DEBUG [1205119255] inbound/tun[tun]: connection closed: io: read/write on closed pipe | upstream: context canceled +0800 2022-11-11 20:42:13 DEBUG [1641123882] inbound/tun[tun]: connection closed: io: read/write on closed pipe | upstream: context canceled +0800 2022-11-11 20:42:13 DEBUG [344628622] inbound/tun[tun]: connection closed: io: read/write on closed pipe | upstream: context canceled +0800 2022-11-11 20:42:13 DEBUG [624742356] inbound/tun[tun]: connection closed: io: read/write on closed pipe | upstream: context canceled +0800 2022-11-11 20:42:13 DEBUG [1027827198] inbound/tun[tun]: connection closed: io: read/write on closed pipe | upstream: context canceled
covenant-stars commented 1 year ago

将BIOS设置中S0休眠关闭启动S3休眠后正常 问题解决