mirror of
https://github.com/syncthing/syncthing.git
synced 2026-12-02 14:52:42 -08:00
5 files changed
+62
-34
No files matched your search
@@ -73,9 +73,7 @@ func checkServers(deviceID protocol.DeviceID, timeout time.Duration, bootstrapPe
|
||||
wg.Go(func() {
|
||||
ctx, cancel := context.WithTimeout(context.Background(), timeout)
|
||||
defer cancel()
|
||||
addresses, err := dht.Lookup(ctx, deviceID, dht.Options{
|
||||
BootstrapPeers: bootstrapPeers,
|
||||
})
|
||||
addresses, err := dht.Lookup(ctx, deviceID, bootstrapPeers)
|
||||
resc <- checkResult{server: "DHT", addresses: addresses, error: err}
|
||||
})
|
||||
|
||||
|
||||
Reference in new issue
Block a user