diff options
author | Mathias Hall-Andersen <mathias@hall-andersen.dk> | 2017-08-22 17:22:45 +0200 |
---|---|---|
committer | Mathias Hall-Andersen <mathias@hall-andersen.dk> | 2017-08-22 17:22:45 +0200 |
commit | 4986cfe78b49173b8a9d86b9ec7e3024d0a3c218 (patch) | |
tree | 73444bb682a9ada96f5ea666551141a933cad174 /src/device.go | |
parent | c6d03ef17f34f7380d95e91a6091a06bce332979 (diff) |
Add support for fwmark on linux
Diffstat (limited to 'src/device.go')
-rw-r--r-- | src/device.go | 7 |
1 files changed, 4 insertions, 3 deletions
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 |