diff --git a/web/tls_config.go b/web/tls_config.go index 00dae1e4..b16ded1d 100644 --- a/web/tls_config.go +++ b/web/tls_config.go @@ -317,7 +317,7 @@ func ListenAndServe(server *http.Server, flags *FlagConfig, logger log.Logger) e } else { listener, err = net.Listen("tcp", address) if err != nil { - return nil + return err } } defer listener.Close()