mirror of
https://github.com/tailscale/tailscale.git
synced 2025-08-11 13:18:53 +00:00
client/web: fill devMode from an env var
Avoids the need to pipe a web client dev flag through the tailscaled command. Updates tailscale/corp#14335 Signed-off-by: Sonia Appasamy <sonia@tailscale.com>
This commit is contained in:

committed by
Sonia Appasamy

parent
f0bc95a066
commit
0ecfc1d5c3
@@ -14,8 +14,7 @@ import (
|
||||
)
|
||||
|
||||
var (
|
||||
addr = flag.String("addr", "localhost:8060", "address of Tailscale web client")
|
||||
devMode = flag.Bool("dev", false, "run web client in dev mode")
|
||||
addr = flag.String("addr", "localhost:8060", "address of Tailscale web client")
|
||||
)
|
||||
|
||||
func main() {
|
||||
@@ -32,7 +31,6 @@ func main() {
|
||||
// Serve the Tailscale web client.
|
||||
ws, err := web.NewServer(web.ServerOpts{
|
||||
Mode: web.LegacyServerMode,
|
||||
DevMode: *devMode,
|
||||
LocalClient: lc,
|
||||
})
|
||||
if err != nil {
|
||||
|
Reference in New Issue
Block a user