aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/app/tools/libwg-go/src/tun/api-android.go
diff options
context:
space:
mode:
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 a5d6b09..75e80c5 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
}