added listening info
This commit is contained in:
2
main.go
2
main.go
@@ -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)
|
||||
|
Reference in New Issue
Block a user