added listening info

This commit is contained in:
2021-11-21 18:52:40 +01:00
parent 58317ed5fa
commit c1189eb839

View File

@@ -1039,6 +1039,7 @@ func main() {
for _, l := range conf.Httpd.Listen {
if l.Socket != "" {
sL, err := net.Listen("unix", l.Socket)
log.Infof("Listening on %s", l.Socket)
if err != nil {
log.Fatalf("Failure listing on socket %s: %v", l.Socket, err)
}
@@ -1047,6 +1048,7 @@ func main() {
_ = http.Serve(sL, cors(proxyRouter))
}()
} else {
log.Infof("Listening on %s:%d", l.Host, l.Port)
tL, err := net.Listen("tcp", fmt.Sprintf("%s:%d", l.Host, l.Port))
if err != nil {
log.Fatalf("Failure listing on %s:%d: %v", l.Host, l.Port, err)