summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorChristine Dodrill <xe@tailscale.com>2021-02-03 15:30:55 -0500
committerChristine Dodrill <xe@tailscale.com>2021-02-03 15:48:34 -0500
commit85605128fbe2606e490162a642077abdb61e544c (patch)
treee6ac0f8aa0bea03cff1f257dc75da03bf4cbbdb3
parent15784dd123ce4ba6136b557677f5d2c1bdf258d7 (diff)
downloadtailscale-Xe/do-windows-logserver-better.tar.xz
tailscale-Xe/do-windows-logserver-better.zip
ipn: use LogServer prefXe/do-windows-logserver-better
Signed-off-by: Christine Dodrill <xe@tailscale.com>
-rw-r--r--ipn/local.go4
1 files changed, 4 insertions, 0 deletions
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...)