Skip to content

Commit 7831621

Browse files
committed
fix embedded derp spam
1 parent 41c957d commit 7831621

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

coderd/tailnet.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ func NewServerTailnet(
7676
// given in this callback, it's only valid while connecting.
7777
if derpServer != nil {
7878
conn.SetDERPRegionDialer(func(_ context.Context, region *tailcfg.DERPRegion) net.Conn {
79-
if !region.EmbeddedRelay {
79+
if !region.EmbeddedRelay || ctx.Err() != nil {
8080
return nil
8181
}
8282
logger.Debug(ctx, "connecting to embedded DERP via in-memory pipe")

0 commit comments

Comments
 (0)