Changeset 767 in code for trunk/cmd


Ignore:
Timestamp:
Jan 19, 2022, 9:38:13 PM (3 years ago)
Author:
contact
Message:

Fix incorrect listen addr in error message

The various server goroutines would always capture the last listen
addr in the loop.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/cmd/soju/main.go

    r747 r767  
    143143
    144144        for _, listen := range cfg.Listen {
     145                listen := listen // copy
    145146                listenURI := listen
    146147                if !strings.Contains(listenURI, ":/") {
Note: See TracChangeset for help on using the changeset viewer.