diff --git a/control/connectivity.go b/control/connectivity.go index 48d4eba..3eb3178 100644 --- a/control/connectivity.go +++ b/control/connectivity.go @@ -27,7 +27,7 @@ func (c *ControlPlaneCore) OutboundAliveChangeCallback(outbound uint8) func(aliv return func(alive bool, networkType *dialer.NetworkType) { c.log.WithFields(logrus.Fields{ "alive": alive, - "network": networkType.String(), + "network": networkType.StringWithoutDns(), "outbound_id": outbound, }).Warnf("Outbound alive state changed, notify the kernel program.") diff --git a/example.dae b/example.dae index 7bf7d45..70ee413 100644 --- a/example.dae +++ b/example.dae @@ -103,16 +103,13 @@ group { # See routing.md for full examples. routing { - pname(dnsmasq, systemd-resolved) -> must_direct # Traffic of DNS in local must be direct to avoid loop when binding to WAN. + pname(NetworkManager, dnsmasq, systemd-resolved) -> must_direct # Traffic of DNS in local must be direct to avoid loop and bad network connectivity check when binding to WAN. ip(geoip:private, 224.0.0.0/3, 'ff00::/8') -> direct # Put it in front unless you know what you're doing. # Write your rules below. # dae arms DNS rush-answer filter so we can use dns.google regardless of DNS pollution. domain(full:dns.google) && port(53) -> direct - pname(firefox) && domain(ip.sb) -> direct - pname(curl) && domain(ip.sb) -> my_group - ip(geoip:cn) -> direct domain(geosite:cn) -> direct