mirror of
https://github.com/cloudflare/cloudflared.git
synced 2025-07-28 21:39:58 +00:00
TUN-4832: Prevent tunnel from running accidentally when only proxy-dns should run
This commit is contained in:
@@ -165,7 +165,7 @@ func TunnelCommand(c *cli.Context) error {
|
|||||||
|
|
||||||
// Unauthenticated named tunnel on <random>.<quick-tunnels-service>.com
|
// Unauthenticated named tunnel on <random>.<quick-tunnels-service>.com
|
||||||
// For now, default to legacy setup unless quick-service is specified
|
// For now, default to legacy setup unless quick-service is specified
|
||||||
if c.String("hostname") == "" && c.String("quick-service") != "" {
|
if !dnsProxyStandAlone(c, nil) && c.String("hostname") == "" && c.String("quick-service") != "" {
|
||||||
return RunQuickTunnel(sc)
|
return RunQuickTunnel(sc)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user