mirror of
https://github.com/syncthing/syncthing.git
synced 2026-02-07 04:32:28 -05:00
lib/connections: Avoid using nil lanChecker
Otherwise it panics when someone calls Priority() on it...
This commit is contained in:
@@ -65,6 +65,10 @@ func (d *relayDialer) Dial(ctx context.Context, id protocol.DeviceID, uri *url.U
|
||||
return newInternalConn(tc, connTypeRelayClient, false, d.wanPriority), nil
|
||||
}
|
||||
|
||||
func (d *relayDialer) Priority(host string) int {
|
||||
return d.wanPriority
|
||||
}
|
||||
|
||||
type relayDialerFactory struct{}
|
||||
|
||||
func (relayDialerFactory) New(opts config.OptionsConfiguration, tlsCfg *tls.Config, _ *registry.Registry, _ *lanChecker) genericDialer {
|
||||
|
||||
Reference in New Issue
Block a user