diff options
author | hagbard <vyosdev@derith.de> | 2019-02-09 14:51:46 -0800 |
---|---|---|
committer | Daniil Baturin <daniil@baturin.org> | 2019-02-28 14:57:44 +0100 |
commit | 74fde01050df870c5a15181afad00ed88957420a (patch) | |
tree | 6d37edc44e2bb6da4d26dd2fecf5e707eb86c3aa /interface-definitions | |
parent | e95f526a6e517e68346dcf65eb27399190971f76 (diff) | |
download | vyos-1x-74fde01050df870c5a15181afad00ed88957420a.tar.gz vyos-1x-74fde01050df870c5a15181afad00ed88957420a.zip |
fixes T1238 - Wireguard allows invalid IP's
Conflicts:
debian/changelog
Diffstat (limited to 'interface-definitions')
-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> |