Ver Fonte

fix sockopt argument type

Darien Raymond há 7 anos atrás
pai
commit
036158570c
1 ficheiros alterados com 1 adições e 1 exclusões
  1. 1 1
      transport/internet/sockopt_linux.go

+ 1 - 1
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
 		}
 	}