mirror of
https://github.com/cwinfo/yggdrasil-go.git
synced 2025-07-27 09:54:14 +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:
@@ -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
|
||||||
}
|
}
|
||||||
}()
|
}()
|
||||||
})
|
})
|
||||||
|
Reference in New Issue
Block a user