File tree Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -141,11 +141,10 @@ type DefaultAddrFallback struct {
141141func (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
You can’t perform that action at this time.
0 commit comments