Fix incorrect listen addr in error message
The various server goroutines would always capture the last listen addr in the loop.
This commit is contained in:
parent
69e9b6a439
commit
f2a03cf7a1
@ -142,6 +142,7 @@ func main() {
|
|||||||
srv.Logger = soju.NewLogger(log.Writer(), debug)
|
srv.Logger = soju.NewLogger(log.Writer(), debug)
|
||||||
|
|
||||||
for _, listen := range cfg.Listen {
|
for _, listen := range cfg.Listen {
|
||||||
|
listen := listen // copy
|
||||||
listenURI := listen
|
listenURI := listen
|
||||||
if !strings.Contains(listenURI, ":/") {
|
if !strings.Contains(listenURI, ":/") {
|
||||||
// This is a raw domain name, make it an URL with an empty scheme
|
// This is a raw domain name, make it an URL with an empty scheme
|
||||||
|
Loading…
Reference in New Issue
Block a user