Browse Source

wgengine/monitor: disable monitor on Android

Netlink is not supported on Android.

Signed-off-by: Elias Naur <[email protected]>
Elias Naur 5 years ago
parent
commit
2dac4f2b24
2 changed files with 3 additions and 1 deletions
  1. 2 0
      wgengine/monitor/monitor_linux.go
  2. 1 1
      wgengine/monitor/monitor_unsupported.go

+ 2 - 0
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 (

+ 1 - 1
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