hotfix(dns): always run and use built-in DNS server

- start DNS server before healthcheck
- do not fallback to plaintext anymore
- allow to use plain addresses with a port different than 53, system-wide
- do not wait for the DNS server and rely on healtcheck only
This commit is contained in:
Quentin McGaw
2026-03-23 13:40:27 +00:00
parent 72af17cc91
commit 405a6f699d
4 changed files with 2 additions and 53 deletions
+2 -2
View File
@@ -76,6 +76,8 @@ func (l *Loop) onTunnelUp(ctx, loopCtx context.Context, data tunnelUpData) {
}
}
_, _ = l.dnsLooper.ApplyStatus(ctx, constants.Running)
icmpTargetIPs := l.healthSettings.ICMPTargetIPs
if len(icmpTargetIPs) == 1 && icmpTargetIPs[0].IsUnspecified() {
icmpTargetIPs = []netip.Addr{data.serverIP}
@@ -101,8 +103,6 @@ func (l *Loop) onTunnelUp(ctx, loopCtx context.Context, data tunnelUpData) {
// to start monitoring health and auto-healing.
go l.collectHealthErrors(ctx, loopCtx, healthErrCh)
_, _ = l.dnsLooper.ApplyStatus(ctx, constants.Running)
err = l.publicip.RunOnce(ctx)
if err != nil {
l.logger.Error("getting public IP address information: " + err.Error())