From 19aec7c5c68ae5f8763004d3673c57d0722db39a Mon Sep 17 00:00:00 2001 From: "Jason A. Donenfeld" Date: Wed, 28 Feb 2018 12:42:09 +0100 Subject: [PATCH] GoBackend: support NO_PI mode Signed-off-by: Jason A. Donenfeld --- app/tools/libwg-go/api-android.go | 1 + app/tools/wireguard-go | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/app/tools/libwg-go/api-android.go b/app/tools/libwg-go/api-android.go index b2e3da17..b283d3ad 100644 --- a/app/tools/libwg-go/api-android.go +++ b/app/tools/libwg-go/api-android.go @@ -45,6 +45,7 @@ func wgTurnOn(ifnameRef string, tun_fd int32, settings string) int32 { fd: os.NewFile(uintptr(tun_fd), ""), events: make(chan TUNEvent, 5), errors: make(chan error, 5), + nopi: true, } device := NewDevice(tun, logger) device.tun.mtu = DefaultMTU //TODO: make dynamic diff --git a/app/tools/wireguard-go b/app/tools/wireguard-go index 09de7d13..fd248c6c 160000 --- a/app/tools/wireguard-go +++ b/app/tools/wireguard-go @@ -1 +1 @@ -Subproject commit 09de7d1342a6d069ee888370a9bdcc289fadc73b +Subproject commit fd248c6cb1873229b5e487045accdf7ed7ac822e