summaryrefslogtreecommitdiffhomepage
path: root/tunnel/tools/libwg-go/api-android.go
diff options
context:
space:
mode:
authorJason A. Donenfeld <Jason@zx2c4.com>2021-02-22 02:38:46 +0100
committerJason A. Donenfeld <Jason@zx2c4.com>2021-02-22 15:27:53 +0100
commit11301617d24cd451065c5682e4170f8d4d781c1d (patch)
tree7bb77be8139606bb6b3b1ed3b4beadf18c03cfd4 /tunnel/tools/libwg-go/api-android.go
parent617be576f8a1bc41ec0b32ea57c84e44626b7352 (diff)
tunnel: update to go 1.16 and newer api
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Diffstat (limited to 'tunnel/tools/libwg-go/api-android.go')
-rw-r--r--tunnel/tools/libwg-go/api-android.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/tunnel/tools/libwg-go/api-android.go b/tunnel/tools/libwg-go/api-android.go
index 5e85d086..6d0802ff 100644
--- a/tunnel/tools/libwg-go/api-android.go
+++ b/tunnel/tools/libwg-go/api-android.go
@@ -88,7 +88,7 @@ func wgTurnOn(interfaceName string, tunFd int32, settings string) int32 {
}
logger.Verbosef("Attaching to interface %v", name)
- device := device.NewDevice(tun, logger)
+ device := device.NewDevice(tun, conn.NewStdNetBind(), logger)
err = device.IpcSet(settings)
if err != nil {