Skip to content

Commit e4278ba

Browse files
committed
TUN-6070: First connection retries other edge IPs if the error is quic timeout(likely due to firewall blocking UDP)
1 parent f81b0ee commit e4278ba

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

supervisor/supervisor.go

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ import (
77
"time"
88

99
"github.com/google/uuid"
10+
"github.com/lucas-clemente/quic-go"
1011
"github.com/rs/zerolog"
1112

1213
"github.com/cloudflare/cloudflared/connection"
@@ -264,9 +265,9 @@ func (s *Supervisor) startFirstTunnel(
264265
switch err.(type) {
265266
case nil:
266267
return
267-
// try the next address if it was a dialError(network problem) or
268+
// try the next address if it was a quic.IdleTimeoutError, dialError(network problem) or
268269
// dupConnRegisterTunnelError
269-
case edgediscovery.DialError, connection.DupConnRegisterTunnelError:
270+
case *quic.IdleTimeoutError, edgediscovery.DialError, connection.DupConnRegisterTunnelError:
270271
edgeErrors++
271272
default:
272273
return

0 commit comments

Comments
 (0)