1
0
mirror of https://github.com/fumiama/terasu-cloudflared.git synced 2026-06-09 12:40:35 +08:00

TUN-4177: Running with proxy-dns should not prevent running Named Tunnels

This commit is contained in:
Nuno Diegues
2021-04-05 11:09:38 +01:00
parent 1720ac0fc6
commit b25d38dd72
4 changed files with 17 additions and 7 deletions

View File

@@ -296,7 +296,7 @@ func StartServer(
}()
// Serve DNS proxy stand-alone if no hostname or tag or app is going to run
if dnsProxyStandAlone(c) {
if dnsProxyStandAlone(c, namedTunnel) {
connectedSignal.Notify()
// no grace period, handle SIGINT/SIGTERM immediately
return waitToShutdown(&wg, cancel, errC, graceShutdownC, 0, log)