TUN-2690: cloudflared reconnect uses wrong context

This commit is contained in:
Adam Chalmers 2020-01-28 16:16:56 -06:00
parent e729dfc51e
commit 203b939614
1 changed files with 1 additions and 1 deletions

View File

@ -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 {