Correct DisplayName implementation
This commit is contained in:
1 parent
debe656f9f
commit
3f08ddefe9
1 file changed
+1
-1
@@ -424,7 +424,7 @@ func (fwd *overlaySwitchForwarder) DisplayName() string {
|
||||
var best OverlayForwarder
|
||||
|
||||
fwd.lock.Lock()
|
||||
if fwd.best > 0 {
|
||||
if fwd.best >= 0 {
|
||||
best = fwd.forwarders[fwd.best].fwd
|
||||
}
|
||||
fwd.lock.Unlock()
|
||||
|
||||
Reference in new issue
Block a user