lib/connections: Dialer code deduplication (#6187)

This commit is contained in:
Simon Frei
2019-11-26 08:36:58 +01:00
committed by Audrius Butkevicius
parent 4340589501
commit 33258b06f4
5 changed files with 34 additions and 37 deletions

View File

@@ -442,7 +442,7 @@ func (s *service) connect(ctx context.Context) {
continue
}
dialer := dialerFactory.New(s.cfg, s.tlsCfg)
dialer := dialerFactory.New(s.cfg.Options(), s.tlsCfg)
nextDial[nextDialKey] = now.Add(dialer.RedialFrequency())
// For LAN addresses, increase the priority so that we