Fix warning in server/startup.go

This commit is contained in:
Ivan Davydov 2024-08-16 16:31:59 +03:00
parent dbd61e28a8
commit cd6eb82cf1

View File

@ -81,10 +81,7 @@ func Serve(ctx *cli.Context) error {
var listener net.Listener
if cfg.Server.HttpOnlyMode {
log.Info().Msgf(`Starting pages-server in HTTP-only mode. Some
features like encrypted connections and custom
domains are not available in this mode. It is advisable
to run behind a reverse-proxy.`)
log.Warn().Msgf("Starting pages-server in HTTP-only mode. Some features like encrypted connections and custom domains are not available in this mode. It is advisable to run behind a reverse-proxy.")
log.Info().Msgf("Create TCP listener on %s", listeningHTTPAddress)
listener_, err := net.Listen("tcp", listeningHTTPAddress)
if err != nil {