mirror of
https://github.com/tailscale/tailscale.git
synced 2026-11-20 00:31:17 -08:00
net/netns: implement UseSocketMark for Android.
Build fails on Android: `../../../../go/pkg/mod/[email protected]/wgengine/magicsock/magicsock_linux.go:133:12: undefined: netns.UseSocketMark` Signed-off-by: Denton Gentry <[email protected]>
This commit is contained in:
1 parent
41bb47de0e
commit
42f1d92ae0
1 file changed
+5
@@ -20,6 +20,11 @@ var (
|
||||
androidProtectFunc func(fd int) error
|
||||
)
|
||||
|
||||
// UseSocketMark reports whether SO_MARK is in use. Android does not use SO_MARK.
|
||||
func UseSocketMark() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// SetAndroidProtectFunc register a func that Android provides that JNI calls into
|
||||
// https://developer.android.com/reference/android/net/VpnService#protect(int)
|
||||
// which is documented as:
|
||||
|
||||
Reference in new issue
Block a user