mirror of
https://github.com/XTLS/Xray-core.git
synced 2025-04-02 21:36:16 +03:00
Update sockopt_windows.go
This commit is contained in:
parent
946c480bd4
commit
4b074a06ed
1 changed files with 1 additions and 0 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Reference in a new issue