Resolve "OS upstream failure / wrong default route"

This commit is contained in:
Alex Paguis
2025-02-22 11:51:07 +00:00
committed by Cuong Manh Le
parent 49eb152d02
commit a0c5062e3a
5 changed files with 118 additions and 3 deletions
+3 -1
View File
@@ -853,10 +853,12 @@ func selfCheckStatus(ctx context.Context, s service.Service, sockDir string) (bo
}
mainLog.Load().Debug().Msg("ctrld listener is ready")
mainLog.Load().Debug().Msg("performing self-check")
lc := cfg.FirstListener()
addr := net.JoinHostPort(lc.IP, strconv.Itoa(lc.Port))
mainLog.Load().Debug().Msgf("performing listener test, sending queries to %s", addr)
if err := selfCheckResolveDomain(context.TODO(), addr, "internal", selfCheckInternalTestDomain); err != nil {
return false, status, err
}