Skip to content

Commit 0458ad4

Browse files
committed
Revert "TUN-6384: Correct duplicate connection error to fetch new IP first"
This reverts commit 76add5c.
1 parent b9453b8 commit 0458ad4

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

supervisor/tunnel.go

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -141,11 +141,10 @@ type DefaultAddrFallback struct {
141141
func (f DefaultAddrFallback) ShouldGetNewAddress(err error) (needsNewAddress bool, isConnectivityError bool) {
142142
switch err.(type) {
143143
case nil: // maintain current IP address
144-
// DupConnRegisterTunnelError should indicate to get a new address immediately
145-
case connection.DupConnRegisterTunnelError:
146-
return true, false
147-
// Try the next address if it was a quic.IdleTimeoutError
144+
// Try the next address if it was a quic.IdleTimeoutError or
145+
// dupConnRegisterTunnelError
148146
case *quic.IdleTimeoutError,
147+
connection.DupConnRegisterTunnelError,
149148
edgediscovery.DialError,
150149
*connection.EdgeQuicDialError:
151150
// Wait for two failures before falling back to a new address

0 commit comments

Comments
 (0)