Merge pull request #1526 from calmh/minreconnect
Don't allow arbitrarily short reconnection intervals (fixes #1524)
This commit is contained in:
commit
9f67d86b30
@ -370,6 +370,11 @@ func (cfg *Configuration) prepare(myID protocol.DeviceID) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Very short reconnection intervals are annoying
|
||||||
|
if cfg.Options.ReconnectIntervalS < 5 {
|
||||||
|
cfg.Options.ReconnectIntervalS = 5
|
||||||
|
}
|
||||||
|
|
||||||
cfg.Options.ListenAddress = uniqueStrings(cfg.Options.ListenAddress)
|
cfg.Options.ListenAddress = uniqueStrings(cfg.Options.ListenAddress)
|
||||||
cfg.Options.GlobalAnnServers = uniqueStrings(cfg.Options.GlobalAnnServers)
|
cfg.Options.GlobalAnnServers = uniqueStrings(cfg.Options.GlobalAnnServers)
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user