From 5c7fd1978166d0eaa1acbabbfb3a91bea4623b2a Mon Sep 17 00:00:00 2001 From: Adam Fisk Date: Wed, 13 Nov 2024 16:04:24 -0700 Subject: [PATCH] Fixed dialer passing --- dialer/fastconnect.go | 2 +- dialer/two_phase_dialer.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/dialer/fastconnect.go b/dialer/fastconnect.go index fbc6c163a..467e97d30 100644 --- a/dialer/fastconnect.go +++ b/dialer/fastconnect.go @@ -121,7 +121,7 @@ func (fcd *fastConnectDialer) onConnected(pd ProxyDialer, connectTime time.Durat log.Debugf("Setting new top dialer to %v", newTopDialer.Name()) fcd.topDialer.set(newTopDialer) } - fcd.onSuccess(td) + fcd.onSuccess(fcd.topDialer.get()) log.Debug("Finished adding connected dialer") } diff --git a/dialer/two_phase_dialer.go b/dialer/two_phase_dialer.go index a046a83a8..d27f0d0e1 100644 --- a/dialer/two_phase_dialer.go +++ b/dialer/two_phase_dialer.go @@ -18,7 +18,7 @@ type twoPhaseDialer struct { // NewTwoPhaseDialer creates a new dialer for checking proxy connectivity. func NewTwoPhaseDialer(opts *Options, next func(opts *Options, existing Dialer) Dialer) Dialer { - log.Debugf("Creating new fast dialer with %d dialers", len(opts.Dialers)) + log.Debugf("Creating new two phase dialer with %d dialers", len(opts.Dialers)) tpd := &twoPhaseDialer{}