summaryrefslogtreecommitdiffhomepage
path: root/src/conn_linux.go
diff options
context:
space:
mode:
Diffstat (limited to 'src/conn_linux.go')
-rw-r--r--src/conn_linux.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/conn_linux.go b/src/conn_linux.go
index b04471c..e973b25 100644
--- a/src/conn_linux.go
+++ b/src/conn_linux.go
@@ -5,8 +5,8 @@ import (
"net"
)
-func setMark(conn *net.UDPConn, value int) error {
- if conn == nil || value == 0 {
+func setMark(conn *net.UDPConn, value uint32) error {
+ if conn == nil {
return nil
}
@@ -19,6 +19,6 @@ func setMark(conn *net.UDPConn, value int) error {
int(file.Fd()),
unix.SOL_SOCKET,
unix.SO_MARK,
- value,
+ int(value),
)
}