@ -12,6 +12,7 @@ import (
"os/exec"
"os/exec"
"github.com/peterbourgon/ff/v3/ffcli"
"github.com/peterbourgon/ff/v3/ffcli"
"tailscale.com/client/web"
"tailscale.com/clientupdate"
"tailscale.com/clientupdate"
"tailscale.com/ipn"
"tailscale.com/ipn"
"tailscale.com/net/netutil"
"tailscale.com/net/netutil"
@ -193,9 +194,17 @@ func runSet(ctx context.Context, args []string) (retErr error) {
}
}
_ , err = localClient . EditPrefs ( ctx , maskedPrefs )
_ , err = localClient . EditPrefs ( ctx , maskedPrefs )
if err != nil {
return err
return err
}
}
if setArgs . runWebClient && len ( st . TailscaleIPs ) > 0 {
printf ( "\nWeb interface now running at %s:%d" , st . TailscaleIPs [ 0 ] , web . ListenPort )
}
return nil
}
// calcAdvertiseRoutesForSet returns the new value for Prefs.AdvertiseRoutes based on the
// calcAdvertiseRoutesForSet returns the new value for Prefs.AdvertiseRoutes based on the
// current value, the flags passed to "tailscale set".
// current value, the flags passed to "tailscale set".
// advertiseExitNodeSet is whether the --advertise-exit-node flag was set.
// advertiseExitNodeSet is whether the --advertise-exit-node flag was set.