diff options
author | Linus Nordberg <linus@nordberg.se> | 2019-10-08 16:30:38 +0200 |
---|---|---|
committer | Linus Nordberg <linus@nordberg.se> | 2019-10-08 16:30:38 +0200 |
commit | 54177348d20c46f72dee550614d236d74cd504df (patch) | |
tree | de6c4b6e8986ea02516c1fda9b10484bc2df04f5 | |
parent | malformed request returns nothing (diff) | |
download | wg-dynamic-54177348d20c46f72dee550614d236d74cd504df.tar.xz wg-dynamic-54177348d20c46f72dee550614d236d74cd504df.zip |
don't expect 0/32 or ::/128 to be in allowedips
-rwxr-xr-x | tests/clientsh.bash | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/clientsh.bash b/tests/clientsh.bash index e841b79..bc584f4 100755 --- a/tests/clientsh.bash +++ b/tests/clientsh.bash @@ -144,8 +144,8 @@ req_check() { req $* pubkey=$(nn -q $n wg show wg0 public-key) - check_alowedips $n "$pubkey" "${IPV4[$n]}" - check_alowedips $n "$pubkey" "${IPV6[$n]}" + [[ "${IPV4[$n]}" = "0.0.0.0/32" ]] || check_alowedips $n "$pubkey" "${IPV4[$n]}" + [[ "${IPV6[$n]}" = "::/128" ]] || check_alowedips $n "$pubkey" "${IPV6[$n]}" } run_k_at_random() { |