Use parent serve config

Signed-off-by: Tyler Smalley <tyler@tailscale.com>
pull/9411/head
Tyler Smalley 1 year ago committed by Marwan Sulaiman
parent f3a5bfb1b9
commit dfefaa5e35

@ -266,7 +266,7 @@ func (e *serveEnv) runServeCombined(subcmd serveMode) execFunc {
if turnOff { if turnOff {
err = e.unsetServe(sc, dnsName, srvType, srvPort, mount) err = e.unsetServe(sc, dnsName, srvType, srvPort, mount)
} else { } else {
if err := validateConfig(sc, srvPort, srvType); err != nil { if err := validateConfig(parentSC, srvPort, srvType); err != nil {
return err return err
} }
err = e.setServe(sc, st, dnsName, srvType, srvPort, mount, args[0], funnel) err = e.setServe(sc, st, dnsName, srvType, srvPort, mount, args[0], funnel)

Loading…
Cancel
Save