SagerNet / SagerNet/sing-box

SFA stops working after switching from mobile network to wifi

Open
#4,448 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Go
Stars
38.1k
Forks
4.6k
Avg merge
19d 15h
Merged PRs (30d)
1

Description

Operating system

Android

System version

Xiaomi Redmi A5. Android Go 15. Build No 15 A15.0.15.0.VGWRUXM

Installation type

sing-box for Android Graphical Client

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

1.13.19

Version

Description

Sing-box for Android stops working after switching from mobile network to wifi. I didn't find any other way to restore normal sing-box operation except phone reboot. Attached are outputs of "ip address" and "ip link" commands:
1.ip.txt - output of "ip address" command after phone reboot;
1.link.txt - output of "ip link" command after phone reboot;
2.ip.txt - output of "ip address" command after turning wifi OFF (switching to mobile network);
2.link.txt - output of "ip link" command after turning wifi OFF (switching to mobile network);
3.ip.txt - output of "ip address" command after turning wifi back ON (switching to wifi network);
3.link.txt - output of "ip link" command after turning wifi back ON (switching to wifi network);

SFA log attached - logs_20260825_104848.txt

I tried to switch to flight mode, stop and start sing-box but these actions do not resolve the issue.
Even LAN resources remain not available.
Downgrade to 1.13.18 also didn't help.

1.ip.txt

1.link.txt

2.ip.txt

2.link.txt

3.ip.txt

3.link.txt

logs_20260825_104848.txt

Reproduction

config.json

Logs

Supporter
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

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the failure with the attached config.json on Android, switching from mobile data to Wi-Fi, then inspect the attached SFA log and the paired ip.txt and link.txt captures. Done means sing-box resumes normal proxy and LAN access after the network switch without requiring a phone reboot.

Written by the indexing model from the issue text.

Assessment

Tech stack
android, go
Domain
mobile, networking
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Active
Clarity
Mostly clear
Newbie friendliness
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.