cmd/tailscale/cli: flip bool condition

This commit fixes a previous bug added that throws error when serve funnel without service.
It should've been the opposite, which throws error when serve funnel with service.

Signed-off-by: KevinLiang10 <37811973+KevinLiang10@users.noreply.github.com>
This commit is contained in:
KevinLiang10 2025-06-26 17:25:03 -04:00
parent 71fe9a9860
commit a6634ce2c4

View File

@ -271,7 +271,7 @@ func (e *serveEnv) runServeCombined(subcmd serveMode) execFunc {
}
funnel := subcmd == funnel
if !forService && funnel {
if forService && funnel {
return errors.New("Error: --service flag is not supported with funnel")
}