mirror of
https://github.com/octoleo/syncthing.git
synced 2024-11-09 14:50:56 +00:00
lib/discovery: Handle nil relayService (fixes #2890)
This commit is contained in:
parent
d91e6023eb
commit
d01ea9d6fb
@ -124,6 +124,7 @@ func (c *localClient) announcementPkt() Announce {
|
||||
}
|
||||
|
||||
var relays []Relay
|
||||
if c.relayStat != nil {
|
||||
for _, relay := range c.relayStat.Relays() {
|
||||
latency, ok := c.relayStat.RelayStatus(relay)
|
||||
if ok {
|
||||
@ -133,6 +134,7 @@ func (c *localClient) announcementPkt() Announce {
|
||||
})
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
return Announce{
|
||||
Magic: AnnouncementMagic,
|
||||
|
Loading…
Reference in New Issue
Block a user