mirror of
https://github.com/tailscale/tailscale.git
synced 2025-04-16 03:31:39 +00:00
net/netns: implement UseSocketMark for Android.
Build fails on Android: `../../../../go/pkg/mod/tailscale.com@v1.1.1-0.20220916223019-65c24b6334e9/wgengine/magicsock/magicsock_linux.go:133:12: undefined: netns.UseSocketMark` Signed-off-by: Denton Gentry <dgentry@tailscale.com>
This commit is contained in:
parent
41bb47de0e
commit
42f1d92ae0
@ -20,6 +20,11 @@ var (
|
|||||||
androidProtectFunc func(fd int) error
|
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
|
// SetAndroidProtectFunc register a func that Android provides that JNI calls into
|
||||||
// https://developer.android.com/reference/android/net/VpnService#protect(int)
|
// https://developer.android.com/reference/android/net/VpnService#protect(int)
|
||||||
// which is documented as:
|
// which is documented as:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user