Skip to content

Commit

Permalink
home: imp logs
Browse files Browse the repository at this point in the history
  • Loading branch information
ainar-g committed Jul 1, 2024
1 parent 06917df commit 91d5dd2
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion internal/home/web.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 91d5dd2

Please sign in to comment.