iOS 休眠恢复一段时间内找不到默认接口
Open
Nobody has claimed this yet.
bug
- Dominant language
- Go
- Stars
- 38.2k
- Forks
- 4.6k
- Avg merge
- 19d 15h
- Merged PRs (30d)
- 1
Description
Operating system
iOS
System version
18.5
Installation type
sing-box for iOS Graphical Client
If you are using a graphical client, please provide the version of the client.
1.12.10
Version
v1.12.0-beta.19
Description
iOS在休眠模式唤醒后一段时间内找不到默认接口,TUN模块配置如下
{
"type": "tun",
"address": ["172.18.0.1/30", "fdfe:dcba:9876::1/126"],
"auto_route": true,
"mtu": 9000,
"strict_route": true,
"platform": {
"http_proxy": {
"enabled": true,
"server": "127.0.0.1",
"server_port": 2334
}
}
},
{
"type": "mixed",
"tag": "mixed-in",
"listen": "127.0.0.1",
"listen_port": 2334
}
Reproduction
TUN模式下有一定概率能复现的操作步骤
- 开启iPhone的省电模式
- 开启sing-box
- 关闭屏幕隔半小时+
- 唤醒手机立即访问网络
Logs
ERROR[0651] [3689522883 0ms] router: connection refused
ERROR[0651] [3612265270 0ms] router: connection refused
ERROR[0658] network: missing default interface
ERROR[0658] network: missing default interface
ERROR[0658] [1711747636 206ms] dns: exchange failed for 49-courier.push.apple.com. IN A: read tcp 192.168.1.75:56481 ->172.65.42.1:443: use of closed network connection
ERROR[0662] [2026406323 4.43s] outbound/urltest[URLTEST]: read tcp 192.168.1.75:56514 ->172.65.42.1:443: use of closed network connection
ERROR[0662] [1645729990 4.48s] connection:open connection to excess.duolingo.com:443 using outbound/urltest[URLTEST]: read tcp 192.168.1.75:56512->172.65.42.1:443:use of closed network connection
Supporter
- I am a sponsor
Integrity requirements
- I confirm that I have read the documentation, understand the meaning of all the configuration items I wrote, and did not pile up seemingly useful options or default values.
- I confirm that I have provided the server and client configuration files and process that can be reproduced locally, instead of a complicated client configuration file that has been stripped of sensitive data.
- I confirm that I have provided the simplest configuration that can be used to reproduce the error I reported, instead of depending on remote servers, TUN, graphical interface clients, or other closed-source software.
- I confirm that I have provided the complete configuration files and logs, rather than just providing parts I think are useful out of confidence in my own intelligence.
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the reported sequence on iOS 18.5 with sing-box for iOS 1.12.10 and the supplied TUN configuration: enable low power mode, leave the device asleep for over 30 minutes, then access the network. Investigate the network: missing default interface and router: connection refused logs; done means the default interface is available after wake and network access succeeds.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- go, ios
- Domain
- networking, operating-systems
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100