We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 41c957d commit 7831621Copy full SHA for 7831621
coderd/tailnet.go
@@ -76,7 +76,7 @@ func NewServerTailnet(
76
// given in this callback, it's only valid while connecting.
77
if derpServer != nil {
78
conn.SetDERPRegionDialer(func(_ context.Context, region *tailcfg.DERPRegion) net.Conn {
79
- if !region.EmbeddedRelay {
+ if !region.EmbeddedRelay || ctx.Err() != nil {
80
return nil
81
}
82
logger.Debug(ctx, "connecting to embedded DERP via in-memory pipe")
0 commit comments