cmd/tailscale/cli: do not allow turning Funnel on while shields-up (#7770)

This commit is contained in:
shayne
2023-04-04 22:20:27 -04:00
committed by GitHub
parent 7bfb7744b7
commit ba4e58f429
3 changed files with 21 additions and 0 deletions

View File

@@ -163,6 +163,12 @@ func (sc *ServeConfig) IsServingWeb(port uint16) bool {
return sc.TCP[port].HTTPS
}
// IsFunnelOn checks if ServeConfig is currently allowing
// funnel traffic for any host:port.
//
// View version of ServeConfig.IsFunnelOn.
func (v ServeConfigView) IsFunnelOn() bool { return v.ж.IsFunnelOn() }
// IsFunnelOn checks if ServeConfig is currently allowing
// funnel traffic for any host:port.
func (sc *ServeConfig) IsFunnelOn() bool {