Skip to content

Conversation

@everyx
Copy link
Contributor

@everyx everyx commented Jan 6, 2026

Using a DNS server of type dhcp on Linux may lead to the following error during startup, we should ensure sing-box service wait for network online by adding network-online.target dependency:

ERROR[0000] network: missing default interface
ERROR[0000] dns/dhcp[local]: fetch DNS servers: dhcp: prepare interface: missing default interface

ensure sing-box service wait for network online by adding `network-online.target` dependency
@nekohasekai
Copy link
Member

Is this fix really necessary? The error you mentioned starts in the background, doesn't block the startup process, and sing-box should automatically reacquire DHCP servers after a change in network status. If it's not working correctly, you should open a new issue.

@everyx
Copy link
Contributor Author

everyx commented Jan 6, 2026

Is this fix really necessary? The error you mentioned starts in the background, doesn't block the startup process, and sing-box should automatically reacquire DHCP servers after a change in network status. If it's not working correctly, you should open a new issue.

@nekohasekai Well, it doesn't seem appropriate to add unnecessary boot blocking to the system just to eliminate some harmless logs, so I'll close this PR

@everyx everyx closed this Jan 6, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants