version: add IsMobile func

And use it control/controlclient.
This commit is contained in:
Brad Fitzpatrick
2020-03-02 12:37:28 -08:00
parent 11489a6e67
commit 7172f3dbf4
3 changed files with 20 additions and 8 deletions

View File

@ -144,10 +144,9 @@ func hostinfoOS() string {
os := runtime.GOOS
switch os {
case "darwin":
switch runtime.GOARCH {
case "arm", "arm64":
if version.IsMobile() {
return "iOS"
default:
} else {
return "macOS"
}
default: