summaryrefslogtreecommitdiffstatshomepage
path: root/src/device.c
diff options
context:
space:
mode:
authorJason A. Donenfeld <Jason@zx2c4.com>2016-07-08 20:34:32 +0200
committerJason A. Donenfeld <Jason@zx2c4.com>2016-07-10 03:46:56 +0200
commitbf53fcda68b1389432b8bfb749972a4ee744ead1 (patch)
tree4b57c304bfcecf0c21f24b2c1102d3fe48419e29 /src/device.c
parentkeepalives: only queue keepalive when queue is empty (diff)
downloadwireguard-monolithic-historical-bf53fcda68b1389432b8bfb749972a4ee744ead1.tar.xz
wireguard-monolithic-historical-bf53fcda68b1389432b8bfb749972a4ee744ead1.zip
persistent keepalive: use authenticated keepalives
Diffstat (limited to 'src/device.c')
-rw-r--r--src/device.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/device.c b/src/device.c
index 198368f..0f922c7 100644
--- a/src/device.c
+++ b/src/device.c
@@ -41,7 +41,7 @@ static int open_peer(struct wireguard_peer *peer, void *data)
timers_init_peer(peer);
packet_send_queue(peer);
if (peer->persistent_keepalive_interval)
- socket_send_buffer_to_peer(peer, NULL, 0, 0);
+ packet_send_keepalive(peer);
return 0;
}