From 4b074a06edc1c2c863a43d34865b9e2c4b9c567e Mon Sep 17 00:00:00 2001 From: RPRX <63339210+RPRX@users.noreply.github.com> Date: Mon, 31 Mar 2025 12:11:12 +0000 Subject: [PATCH] Update sockopt_windows.go --- transport/internet/sockopt_windows.go | 1 + 1 file changed, 1 insertion(+) diff --git a/transport/internet/sockopt_windows.go b/transport/internet/sockopt_windows.go index aa9f933b..cbd3b41e 100644 --- a/transport/internet/sockopt_windows.go +++ b/transport/internet/sockopt_windows.go @@ -90,6 +90,7 @@ func applyInboundSocketOptions(network string, fd uintptr, config *SocketConfig) } } } + if config.V6Only { if err := syscall.SetsockoptInt(syscall.Handle(fd), syscall.IPPROTO_IPV6, IPV6_V6ONLY, 1); err != nil { return errors.New("failed to set IPV6_V6ONLY").Base(err)