aboutsummaryrefslogtreecommitdiffstats
path: root/src/tun_linux.go
diff options
context:
space:
mode:
authorMathias Hall-Andersen <mathias@hall-andersen.dk>2017-09-01 14:21:53 +0200
committerMathias Hall-Andersen <mathias@hall-andersen.dk>2017-09-01 14:21:53 +0200
commit0294a5c0dd753786996e62236b7d8d524201ace4 (patch)
tree6e4623154072100ff402b45c2ac26fcff30da0fd /src/tun_linux.go
parentRenamed config.go to follow general naming pattern (diff)
downloadwireguard-go-0294a5c0dd753786996e62236b7d8d524201ace4.tar.xz
wireguard-go-0294a5c0dd753786996e62236b7d8d524201ace4.zip
Improved handling of key-material
Diffstat (limited to '')
-rw-r--r--src/tun_linux.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/tun_linux.go b/src/tun_linux.go
index b9541c9..58a762a 100644
--- a/src/tun_linux.go
+++ b/src/tun_linux.go
@@ -63,6 +63,8 @@ func (tun *NativeTun) RoutineNetlinkListener() {
return
}
+ tun.events <- TUNEventUp // TODO: Fix network namespace problem
+
for msg := make([]byte, 1<<16); ; {
msgn, _, _, _, err := unix.Recvmsg(sock, msg[:], nil, 0)