mirror of
https://github.com/tailscale/tailscale.git
synced 2025-07-02 13:08:40 +00:00
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:
parent
71fe9a9860
commit
a6634ce2c4
@ -271,7 +271,7 @@ func (e *serveEnv) runServeCombined(subcmd serveMode) execFunc {
|
|||||||
}
|
}
|
||||||
|
|
||||||
funnel := subcmd == funnel
|
funnel := subcmd == funnel
|
||||||
if !forService && funnel {
|
if forService && funnel {
|
||||||
return errors.New("Error: --service flag is not supported with funnel")
|
return errors.New("Error: --service flag is not supported with funnel")
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user