mirror of
https://github.com/octoleo/syncthing.git
synced 2025-01-03 07:12:27 +00:00
lib/connections: Avoid using nil lanChecker
Otherwise it panics when someone calls Priority() on it...
This commit is contained in:
parent
0f87607cd5
commit
09efe03e1d
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user