~emersion/soju

f2a03cf7a165e913b95329c0e80cfe4ef186f5dd — Simon Ser 3 months ago 69e9b6a
Fix incorrect listen addr in error message

The various server goroutines would always capture the last listen
addr in the loop.
1 files changed, 1 insertions(+), 0 deletions(-)

M cmd/soju/main.go
M cmd/soju/main.go => cmd/soju/main.go +1 -0
@@ 142,6 142,7 @@ func main() {
	srv.Logger = soju.NewLogger(log.Writer(), debug)

	for _, listen := range cfg.Listen {
		listen := listen // copy
		listenURI := listen
		if !strings.Contains(listenURI, ":/") {
			// This is a raw domain name, make it an URL with an empty scheme