From 2ee0eff1bd04ef02b0769341eee22543f8011b68 Mon Sep 17 00:00:00 2001 From: hagbard Date: Wed, 19 Jun 2019 10:55:13 -0700 Subject: [wireguard] T1425 - assign a /31 address on Wireguard interface - added a validator for checking if the address is any cidr noted address --- src/validators/cidr | 3 +++ 1 file changed, 3 insertions(+) create mode 100755 src/validators/cidr (limited to 'src/validators') diff --git a/src/validators/cidr b/src/validators/cidr new file mode 100755 index 000000000..815aa8ba1 --- /dev/null +++ b/src/validators/cidr @@ -0,0 +1,3 @@ +#!/bin/sh + +ipaddrcheck --is-any-cidr $1 -- cgit v1.2.3