mirror of
https://github.com/Control-D-Inc/ctrld.git
synced 2026-02-03 22:18:39 +00:00
On WSL 1, the routing table do not contain default route, causing ctrld failed to get the default iface for setting DNS. However, WSL 1 only use /etc/resolv.conf for setting up DNS, so the interface does not matter, because the setting is applied global anyway. To fix it, just return "lo" as the default interface name on WSL 1. While at it, also removing the useless service.Logger call, which is not unified with the current logger, and may cause false positive on system where syslog is not configured properly (like WSL 1). Also passing the real error when doing sel-check to backoff, so we don't have to use a place holder error.