summaryrefslogtreecommitdiffhomepage
path: root/app/tools/libwg-go/src/tun/api-android.go
diff options
context:
space:
mode:
authorJason A. Donenfeld <Jason@zx2c4.com>2019-02-27 05:13:37 +0100
committerJason A. Donenfeld <Jason@zx2c4.com>2019-02-27 05:24:25 +0100
commitc93e81c632d2be7faa53ad2803a61444710ae962 (patch)
tree759768668d02feedd9036c7f8cae554252e09023 /app/tools/libwg-go/src/tun/api-android.go
parent050e202291755aa867aecaddb723b00403f5bcbd (diff)
libwg-go: update to 1.12
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Diffstat (limited to 'app/tools/libwg-go/src/tun/api-android.go')
-rw-r--r--app/tools/libwg-go/src/tun/api-android.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/app/tools/libwg-go/src/tun/api-android.go b/app/tools/libwg-go/src/tun/api-android.go
index a5d6b092..75e80c5a 100644
--- a/app/tools/libwg-go/src/tun/api-android.go
+++ b/app/tools/libwg-go/src/tun/api-android.go
@@ -6,7 +6,7 @@
package tun
import (
- "git.zx2c4.com/wireguard-go/rwcancel"
+ "golang.zx2c4.com/wireguard/rwcancel"
"os"
)
@@ -20,7 +20,7 @@ func CreateTUNFromFD(tunFd int) (TUNDevice, string, error) {
nopi: true,
}
var err error
- tun.fdCancel, err = rwcancel.NewRWCancel(tunFd)
+ tun.fdCancel, err = rwcancel.NewRWCancel(int(tun.fd))
if err != nil {
return nil, "", err
}