From e2cc7743d5614193a275c08e533da7982470458b Mon Sep 17 00:00:00 2001 From: "Jason A. Donenfeld" Date: Fri, 8 Jul 2016 12:36:04 +0200 Subject: [PATCH] persistent keepalive: enable in an example Signed-off-by: Jason A. Donenfeld --- contrib/ncat-client-server/client.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/contrib/ncat-client-server/client.sh b/contrib/ncat-client-server/client.sh index fbae46a..ab9fe88 100755 --- a/contrib/ncat-client-server/client.sh +++ b/contrib/ncat-client-server/client.sh @@ -9,7 +9,7 @@ IFS=: read -r status server_pubkey server_port internal_ip <&3 [[ $status == OK ]] ip link del dev wg0 2>/dev/null || true ip link add dev wg0 type wireguard -wg set wg0 private-key /tmp/wg_private_key peer "$server_pubkey" allowed-ips 0.0.0.0/0 endpoint "demo.wireguard.io:$server_port" +wg set wg0 private-key /tmp/wg_private_key peer "$server_pubkey" allowed-ips 0.0.0.0/0 endpoint "demo.wireguard.io:$server_port" persistent-keepalive 25 ip address add "$internal_ip"/24 dev wg0 ip link set up dev wg0 if [ "$1" == "default-route" ]; then