From 2dac4f2b24374dde50e2bed31b979e8b8ad1628f Mon Sep 17 00:00:00 2001 From: Elias Naur Date: Fri, 24 Apr 2020 15:23:32 +0200 Subject: [PATCH] wgengine/monitor: disable monitor on Android Netlink is not supported on Android. Signed-off-by: Elias Naur --- wgengine/monitor/monitor_linux.go | 2 ++ wgengine/monitor/monitor_unsupported.go | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/wgengine/monitor/monitor_linux.go b/wgengine/monitor/monitor_linux.go index bbcbad506..ef3706b01 100644 --- a/wgengine/monitor/monitor_linux.go +++ b/wgengine/monitor/monitor_linux.go @@ -2,6 +2,8 @@ // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. +// +build !android + package monitor import ( diff --git a/wgengine/monitor/monitor_unsupported.go b/wgengine/monitor/monitor_unsupported.go index 3fc0857b5..f3a5a1c48 100644 --- a/wgengine/monitor/monitor_unsupported.go +++ b/wgengine/monitor/monitor_unsupported.go @@ -2,7 +2,7 @@ // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. -// +build !linux,!freebsd +// +build !linux,!freebsd android package monitor