From 203b939614771b6a3a760822aff8691a4291454d Mon Sep 17 00:00:00 2001 From: Adam Chalmers Date: Tue, 28 Jan 2020 16:16:56 -0600 Subject: [PATCH] TUN-2690: cloudflared reconnect uses wrong context --- origin/tunnel.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/origin/tunnel.go b/origin/tunnel.go index eb044b44..63dca0da 100644 --- a/origin/tunnel.go +++ b/origin/tunnel.go @@ -273,7 +273,7 @@ func ServeTunnel( eventDigest, eventDigestErr := credentialManager.EventDigest() // if we have both credentials, we can reconnect if tokenErr == nil && eventDigestErr == nil { - return ReconnectTunnel(ctx, token, eventDigest, handler.muxer, config, logger, connectionID, originLocalIP, u) + return ReconnectTunnel(serveCtx, token, eventDigest, handler.muxer, config, logger, connectionID, originLocalIP, u) } // log errors and proceed to RegisterTunnel if tokenErr != nil {