From 85605128fbe2606e490162a642077abdb61e544c Mon Sep 17 00:00:00 2001 From: Christine Dodrill Date: Wed, 3 Feb 2021 15:30:55 -0500 Subject: [PATCH] ipn: use LogServer pref Signed-off-by: Christine Dodrill --- ipn/local.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/ipn/local.go b/ipn/local.go index 7e2c60909..d3d847776 100644 --- a/ipn/local.go +++ b/ipn/local.go @@ -429,6 +429,10 @@ func (b *LocalBackend) Start(opts Options) error { return fmt.Errorf("loading requested state: %v", err) } + if b.prefs.LogServer == "" { + b.prefs.LogServer = "https://log.tailscale.io" + } + os.Setenv("TAILSCALE_LOG_TARGET", b.prefs.LogServer) b.inServerMode = b.prefs.ForceDaemon b.serverURL = b.prefs.ControlURL hostinfo.RoutableIPs = append(hostinfo.RoutableIPs, b.prefs.AdvertiseRoutes...)