diff --git a/internal/home/web.go b/internal/home/web.go index f1997b05..3c403e4b 100644 --- a/internal/home/web.go +++ b/internal/home/web.go @@ -133,7 +133,14 @@ func webCheckPortAvailable(port uint16) (ok bool) { addrPort := netip.AddrPortFrom(config.HTTPConfig.Address.Addr(), port) - return aghnet.CheckPort("tcp", addrPort) == nil + err := aghnet.CheckPort("tcp", addrPort) + if err != nil { + log.Info("web: warning: checking https port: %s", err) + + return false + } + + return true } // tlsConfigChanged updates the TLS configuration and restarts the HTTPS server