libwg-go: use PeekLookAtSocketFd6(), not PeekLookAtSocketFd4()

Signed-off-by: Jonathan Davies <jpds@protonmail.com>
Fixes: 3d088411 ("libwg-go: use conn.Bind for socketfd peek")
Cc: David Crawshaw <crawshaw@tailscale.com>
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
This commit is contained in:
Jonathan Davies
2020-09-16 18:01:06 +02:00
committed by Jason A. Donenfeld
parent dcd596907a
commit b877593d55
+1 -1
View File
@@ -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
}