ipn: use LogServer pref

Signed-off-by: Christine Dodrill <xe@tailscale.com>
This commit is contained in:
Christine Dodrill 2021-02-03 15:30:55 -05:00
parent 15784dd123
commit 85605128fb
1 changed files with 4 additions and 0 deletions

View File

@ -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...)