From 0458ad41ddcb54e01d03a1ae7d52825c89a4d7e1 Mon Sep 17 00:00:00 2001 From: Devin Carr Date: Tue, 14 Jun 2022 16:07:47 -0700 Subject: [PATCH] Revert "TUN-6384: Correct duplicate connection error to fetch new IP first" This reverts commit 76add5ca77a5d9fd1e474b325952ae7c678e44f1. --- supervisor/tunnel.go | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/supervisor/tunnel.go b/supervisor/tunnel.go index fcbace54..8d3fe9f0 100644 --- a/supervisor/tunnel.go +++ b/supervisor/tunnel.go @@ -141,11 +141,10 @@ type DefaultAddrFallback struct { func (f DefaultAddrFallback) ShouldGetNewAddress(err error) (needsNewAddress bool, isConnectivityError bool) { switch err.(type) { case nil: // maintain current IP address - // DupConnRegisterTunnelError should indicate to get a new address immediately - case connection.DupConnRegisterTunnelError: - return true, false - // Try the next address if it was a quic.IdleTimeoutError + // Try the next address if it was a quic.IdleTimeoutError or + // dupConnRegisterTunnelError case *quic.IdleTimeoutError, + connection.DupConnRegisterTunnelError, edgediscovery.DialError, *connection.EdgeQuicDialError: // Wait for two failures before falling back to a new address