diff options
-rw-r--r-- | interface-definitions/interfaces-bridge.xml | 2 | ||||
-rw-r--r-- | interface-definitions/interfaces-wireguard.xml | 2 | ||||
-rwxr-xr-x | src/validators/cidr | 3 | ||||
-rwxr-xr-x | src/validators/ip-cidr | 3 |
4 files changed, 5 insertions, 5 deletions
diff --git a/interface-definitions/interfaces-bridge.xml b/interface-definitions/interfaces-bridge.xml index 93f374c80..d20582849 100644 --- a/interface-definitions/interfaces-bridge.xml +++ b/interface-definitions/interfaces-bridge.xml @@ -39,7 +39,7 @@ <description>Dynamic Host Configuration Protocol for IPv6</description> </valueHelp> <constraint> - <validator name="cidr"/> + <validator name="ip-cidr"/> <regex>(dhcp|dhcpv6)</regex> </constraint> <multi/> diff --git a/interface-definitions/interfaces-wireguard.xml b/interface-definitions/interfaces-wireguard.xml index c0102ea54..284a2e643 100644 --- a/interface-definitions/interfaces-wireguard.xml +++ b/interface-definitions/interfaces-wireguard.xml @@ -20,7 +20,7 @@ <properties> <help>IP address</help> <constraint> - <validator name="cidr"/> + <validator name="ip-cidr"/> </constraint> <valueHelp> <format>ipv4net</format> diff --git a/src/validators/cidr b/src/validators/cidr deleted file mode 100755 index 815aa8ba1..000000000 --- a/src/validators/cidr +++ /dev/null @@ -1,3 +0,0 @@ -#!/bin/sh - -ipaddrcheck --is-any-cidr $1 diff --git a/src/validators/ip-cidr b/src/validators/ip-cidr new file mode 100755 index 000000000..987bf84ca --- /dev/null +++ b/src/validators/ip-cidr @@ -0,0 +1,3 @@ +#!/bin/sh + +ipaddrcheck --is-any-cidr $1 |