mirror of
https://github.com/netbirdio/netbird.git
synced 2026-09-26 00:29:06 +02:00
Fix mobile builds
This commit is contained in:
@@ -1,3 +1,5 @@
|
||||
//go:build darwin && !ios
|
||||
|
||||
package ipcauth
|
||||
|
||||
import (
|
||||
|
||||
@@ -0,0 +1,10 @@
|
||||
package ipcauth
|
||||
|
||||
// isConsoleUser has no meaning on iOS, which has no console session to sit at.
|
||||
//
|
||||
// iOS satisfies the darwin constraint, so this keeps it off the macOS lookup.
|
||||
// That one reaches SystemConfiguration through purego, which refuses to build
|
||||
// for iOS without cgo.
|
||||
func isConsoleUser(Identity) bool {
|
||||
return false
|
||||
}
|
||||
@@ -5,9 +5,8 @@ package ipcauth
|
||||
// isConsoleUser has no meaning on a platform that exposes no console-user
|
||||
// lookup, where nobody is ever at a console.
|
||||
//
|
||||
// Mobile is not built from here: ios satisfies darwin and android satisfies
|
||||
// linux, so both take those lookups, which are present but never find a GUI
|
||||
// session or a seat.
|
||||
// Android is not built from here: it satisfies linux and takes that lookup,
|
||||
// which is present but never finds a seat.
|
||||
func isConsoleUser(Identity) bool {
|
||||
return false
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user