mirror of
https://github.com/v2fly/v2ray-core.git
synced 2025-02-20 23:47:21 -05:00
fix sockopt argument type
This commit is contained in:
parent
af3a08a848
commit
036158570c
@ -4,7 +4,7 @@ import "syscall"
|
|||||||
|
|
||||||
func applySocketOptions(fd uintptr, config *SocketConfig) error {
|
func applySocketOptions(fd uintptr, config *SocketConfig) error {
|
||||||
if config.Mark != 0 {
|
if config.Mark != 0 {
|
||||||
if err := syscall.SetsockoptInt(int(fd), syscall.SOL_SOCKET, syscall.SO_MARK, config.Mark); err != nil {
|
if err := syscall.SetsockoptInt(int(fd), syscall.SOL_SOCKET, syscall.SO_MARK, int(config.Mark)); err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user