From 4986cfe78b49173b8a9d86b9ec7e3024d0a3c218 Mon Sep 17 00:00:00 2001 From: Mathias Hall-Andersen Date: Tue, 22 Aug 2017 17:22:45 +0200 Subject: Add support for fwmark on linux --- src/device.go | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'src/device.go') diff --git a/src/device.go b/src/device.go index 2a0d0ca..2ead768 100644 --- a/src/device.go +++ b/src/device.go @@ -21,9 +21,10 @@ type Device struct { messageBuffers sync.Pool } net struct { - mutex sync.RWMutex - addr *net.UDPAddr // UDP source address - conn *net.UDPConn // UDP "connection" + mutex sync.RWMutex + addr *net.UDPAddr // UDP source address + conn *net.UDPConn // UDP "connection" + fwmark int } mutex sync.RWMutex privateKey NoisePrivateKey -- cgit v1.2.3