@ -29,6 +29,7 @@ import (
"github.com/tailscale/tailscale-android/jni"
"github.com/tailscale/tailscale-android/jni"
"tailscale.com/client/tailscale/apitype"
"tailscale.com/client/tailscale/apitype"
"tailscale.com/hostinfo"
"tailscale.com/ipn"
"tailscale.com/ipn"
"tailscale.com/ipn/ipnlocal"
"tailscale.com/ipn/ipnlocal"
"tailscale.com/net/dns"
"tailscale.com/net/dns"
@ -236,6 +237,16 @@ func (a *App) runBackend() error {
fatalErr ( err )
fatalErr ( err )
}
}
paths . AppSharedDir . Store ( appDir )
paths . AppSharedDir . Store ( appDir )
hostinfo . SetOSVersion ( a . osVersion ( ) )
if ! googleSignInEnabled ( ) {
hostinfo . SetPackage ( "nogoogle" )
}
deviceModel := a . modelName ( )
if a . isChromeOS ( ) {
deviceModel = "ChromeOS: " + deviceModel
}
hostinfo . SetDeviceModel ( deviceModel )
type configPair struct {
type configPair struct {
rcfg * router . Config
rcfg * router . Config
dcfg * dns . OSConfig
dcfg * dns . OSConfig
@ -327,12 +338,6 @@ func (a *App) runBackend() error {
state . updateExitNodes ( )
state . updateExitNodes ( )
if first {
if first {
state . Prefs . Hostname = a . hostname ( )
state . Prefs . Hostname = a . hostname ( )
state . Prefs . OSVersion = a . osVersion ( )
deviceModel := a . modelName ( )
if a . isChromeOS ( ) {
deviceModel = "ChromeOS: " + deviceModel
}
state . Prefs . DeviceModel = deviceModel
go b . backend . SetPrefs ( state . Prefs )
go b . backend . SetPrefs ( state . Prefs )
}
}
a . setPrefs ( state . Prefs )
a . setPrefs ( state . Prefs )
@ -666,9 +671,6 @@ func (a *App) osVersion() string {
if err != nil {
if err != nil {
panic ( err )
panic ( err )
}
}
if ! googleSignInEnabled ( ) {
version += " [nogoogle]"
}
return version
return version
}
}