Redial failed connections if possible

This commit is contained in:
Neil Alexander 2022-11-10 21:02:42 +00:00
parent 0da871f528
commit df75a3a4fe
9 changed files with 120 additions and 28 deletions

View file

@ -159,6 +159,11 @@ func (m *Yggdrasil) Stop() error {
return nil
}
// Retry resets the peer connection timer and tries to dial them immediately.
func (m *Yggdrasil) RetryPeersNow() {
m.core.RetryPeersNow()
}
// GenerateConfigJSON generates mobile-friendly configuration in JSON format
func GenerateConfigJSON() []byte {
nc := defaults.GenerateConfig()