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:
parent
dcd596907a
commit
b877593d55
@ -172,7 +172,7 @@ func wgGetSocketV6(tunnelHandle int32) int32 {
|
|||||||
if bind == nil {
|
if bind == nil {
|
||||||
return -1
|
return -1
|
||||||
}
|
}
|
||||||
fd, err := bind.PeekLookAtSocketFd4()
|
fd, err := bind.PeekLookAtSocketFd6()
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return -1
|
return -1
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user