mirror of
https://github.com/yggdrasil-network/yggdrasil-go.git
synced 2025-01-03 13:47:47 +00:00
Fix bug where ephemeral links would try to reconnect in a fast loop
Helps #1141, although not a complete solution.
This commit is contained in:
parent
d6fd305f12
commit
d1b849588f
@ -359,8 +359,9 @@ func (l *links) add(u *url.URL, sintf string, linkType linkType) error {
|
|||||||
if backoffNow() {
|
if backoffNow() {
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
return
|
|
||||||
}
|
}
|
||||||
|
// Ephemeral or incoming connections don't reconnect.
|
||||||
|
return
|
||||||
}
|
}
|
||||||
}()
|
}()
|
||||||
})
|
})
|
||||||
|
Loading…
x
Reference in New Issue
Block a user