From 3d13601173706f8e1b6447e66c70c146b82c310e Mon Sep 17 00:00:00 2001 From: "Jason A. Donenfeld" Date: Mon, 12 Feb 2018 10:42:16 +0100 Subject: netns: replace n0 ip with ip0, per custom Signed-off-by: Jason A. Donenfeld --- src/tests/netns.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/tests/netns.sh b/src/tests/netns.sh index 3588284..57d0b28 100755 --- a/src/tests/netns.sh +++ b/src/tests/netns.sh @@ -428,7 +428,7 @@ ip0 link del wg0 ! n0 wg show doesnotexist || false -n0 ip link add wg0 type wireguard +ip0 link add wg0 type wireguard n0 wg set wg0 private-key <(echo "$key1") peer "$pub2" preshared-key <(echo "$psk") [[ $(n0 wg show wg0 private-key) == "$key1" ]] [[ $(n0 wg show wg0 preshared-keys) == "$pub2 $psk" ]] @@ -444,7 +444,7 @@ n0 wg set wg0 peer "$pub2" n0 wg set wg0 private-key <(echo "$key1") n0 wg set wg0 peer "$pub2" [[ $(n0 wg show wg0 peers) == "$pub2" ]] -n0 ip link del wg0 +ip0 link del wg0 declare -A objects while read -t 0.1 -r line 2>/dev/null || [[ $? -ne 142 ]]; do -- cgit v1.2.3