mirror of
https://github.com/v2fly/v2ray-core.git
synced 2025-02-20 23:47:21 -05:00
commit
69afe55d7a
@ -14,7 +14,7 @@ const (
|
|||||||
)
|
)
|
||||||
|
|
||||||
func bindAddr(fd uintptr, address net.Address, port net.Port) error {
|
func bindAddr(fd uintptr, address net.Address, port net.Port) error {
|
||||||
err = syscall.SetsockoptInt(fd, syscall.SOL_SOCKET, syscall.SO_REUSEADDR, 1)
|
err := syscall.SetsockoptInt(int(fd), syscall.SOL_SOCKET, syscall.SO_REUSEADDR, 1)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return newError("failed to set resuse_addr").Base(err).AtWarning()
|
return newError("failed to set resuse_addr").Base(err).AtWarning()
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user