diff options
| author | Christine Dodrill <xe@tailscale.com> | 2021-02-03 15:30:55 -0500 |
|---|---|---|
| committer | Christine Dodrill <xe@tailscale.com> | 2021-02-03 15:48:34 -0500 |
| commit | 85605128fbe2606e490162a642077abdb61e544c (patch) | |
| tree | e6ac0f8aa0bea03cff1f257dc75da03bf4cbbdb3 | |
| parent | 15784dd123ce4ba6136b557677f5d2c1bdf258d7 (diff) | |
| download | tailscale-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.go | 4 |
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...) |
