diff options
Diffstat (limited to 'interface-definitions/wireguard.xml')
-rw-r--r-- | interface-definitions/wireguard.xml | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/interface-definitions/wireguard.xml b/interface-definitions/wireguard.xml index 8bfffac9d..2534f1e9c 100644 --- a/interface-definitions/wireguard.xml +++ b/interface-definitions/wireguard.xml @@ -19,8 +19,11 @@ <leafNode name="address"> <properties> <help>IP address</help> + <constraint> + <validator name="ip-host"/> + </constraint> <valueHelp> - <format>ipv4net</format> + <format>ipv4-address</format> <description>IPv4 address and prefix length</description> </valueHelp> <valueHelp> @@ -103,6 +106,9 @@ <leafNode name="allowed-ips"> <properties> <help>IP addresses allowed to traverse the peer</help> + <constraint> + <validator name="ip-host"/> + </constraint> <multi/> </properties> </leafNode> |