Correct DisplayName implementation

This commit is contained in:
Adam Harrison committed 2015-10-16 12:24:38 +01:00
1 parent debe656f9f
commit 3f08ddefe9
1 file changed
+1 -1
+1 -1
View File
@@ -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()