Revert "TUN-6384: Correct duplicate connection error to fetch new IP first"
This reverts commit 76add5ca77
.
This commit is contained in:
parent
b9453b84bb
commit
0458ad41dd
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue