aboutsummaryrefslogtreecommitdiffstats
path: root/src/uapi.go
diff options
context:
space:
mode:
authorMathias Hall-Andersen <mathias@hall-andersen.dk>2017-12-29 17:42:09 +0100
committerMathias Hall-Andersen <mathias@hall-andersen.dk>2017-12-29 17:42:09 +0100
commitd73f960aab86b9a12b0b7d18aa80ce1d4f130695 (patch)
treeec4b6683c1c0b6b28a95b4bdb718dcc3faa0f222 /src/uapi.go
parentRemoved IFF_NO_PI from TUN linux (diff)
downloadwireguard-go-d73f960aab86b9a12b0b7d18aa80ce1d4f130695.tar.xz
wireguard-go-d73f960aab86b9a12b0b7d18aa80ce1d4f130695.zip
Peer timer teardown
Diffstat (limited to 'src/uapi.go')
-rw-r--r--src/uapi.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/uapi.go b/src/uapi.go
index 155f483..a67bff1 100644
--- a/src/uapi.go
+++ b/src/uapi.go
@@ -296,7 +296,7 @@ func ipcSetOperation(device *Device, socket *bufio.ReadWriter) *IPCError {
logError.Println("Failed to get tun device status:", err)
return &IPCError{Code: ipcErrorIO}
}
- if device.tun.isUp.Get() && !dummy {
+ if device.isUp.Get() && !dummy {
peer.SendKeepAlive()
}
}