Browse Source

fix sockopt argument type

pull/1269/head
Darien Raymond 6 years ago
parent
commit
036158570c
No known key found for this signature in database
GPG Key ID: 7251FFA14BB18169
  1. 2
      transport/internet/sockopt_linux.go

2
transport/internet/sockopt_linux.go

@ -4,7 +4,7 @@ import "syscall"
func applySocketOptions(fd uintptr, config *SocketConfig) error {
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
}
}

Loading…
Cancel
Save