From b877593d552e1d57038f4ab4708d0f00cb547c6b Mon Sep 17 00:00:00 2001 From: Jonathan Davies Date: Wed, 16 Sep 2020 13:28:04 +0000 Subject: libwg-go: use PeekLookAtSocketFd6(), not PeekLookAtSocketFd4() Signed-off-by: Jonathan Davies Fixes: 3d088411 ("libwg-go: use conn.Bind for socketfd peek") Cc: David Crawshaw Signed-off-by: Jason A. Donenfeld --- tunnel/tools/libwg-go/api-android.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tunnel/tools/libwg-go/api-android.go') diff --git a/tunnel/tools/libwg-go/api-android.go b/tunnel/tools/libwg-go/api-android.go index 70c1c0c9..40cc6427 100644 --- a/tunnel/tools/libwg-go/api-android.go +++ b/tunnel/tools/libwg-go/api-android.go @@ -172,7 +172,7 @@ func wgGetSocketV6(tunnelHandle int32) int32 { if bind == nil { return -1 } - fd, err := bind.PeekLookAtSocketFd4() + fd, err := bind.PeekLookAtSocketFd6() if err != nil { return -1 } -- cgit v1.2.3