TUN-4832: Prevent tunnel from running accidentally when only proxy-dns should run

This commit is contained in:
Nuno Diegues 2021-07-29 00:07:35 +01:00
parent 0924549efd
commit aa24338225
1 changed files with 1 additions and 1 deletions

View File

@ -165,7 +165,7 @@ func TunnelCommand(c *cli.Context) error {
// Unauthenticated named tunnel on <random>.<quick-tunnels-service>.com
// 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)
}