summaryrefslogtreecommitdiff
path: root/src/uapi.go
diff options
context:
space:
mode:
Diffstat (limited to 'src/uapi.go')
-rw-r--r--src/uapi.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/uapi.go b/src/uapi.go
index 155f483..673d413 100644
--- a/src/uapi.go
+++ b/src/uapi.go
@@ -163,6 +163,9 @@ func ipcSetOperation(device *Device, socket *bufio.ReadWriter) *IPCError {
device.net.mutex.Lock()
device.net.fwmark = uint32(fwmark)
+ if err := device.net.bind.SetMark(fwmark); err != nil {
+ logError.Println("Failed to update fwmark:", err)
+ }
device.net.mutex.Unlock()
case "public_key":