summaryrefslogtreecommitdiff
path: root/interface-definitions/wireguard.xml
diff options
context:
space:
mode:
authorhagbard <vyosdev@derith.de>2018-08-23 11:31:07 -0700
committerhagbard <vyosdev@derith.de>2018-08-23 11:31:07 -0700
commit810906cf4c3e7ea8261b21a70ba5d5e71c4c7484 (patch)
tree435df9d5e4cad3bae5f84eceaa3fc39c70e72048 /interface-definitions/wireguard.xml
parent5866fba00b77463ce29fa5700b9e89e783fea831 (diff)
downloadvyos-1x-810906cf4c3e7ea8261b21a70ba5d5e71c4c7484.tar.gz
vyos-1x-810906cf4c3e7ea8261b21a70ba5d5e71c4c7484.zip
adding validation for listen-port
Diffstat (limited to 'interface-definitions/wireguard.xml')
-rw-r--r--interface-definitions/wireguard.xml3
1 files changed, 3 insertions, 0 deletions
diff --git a/interface-definitions/wireguard.xml b/interface-definitions/wireguard.xml
index 21656e3d8..cd92aefe0 100644
--- a/interface-definitions/wireguard.xml
+++ b/interface-definitions/wireguard.xml
@@ -51,6 +51,9 @@
<leafNode name="listen-port">
<properties>
<help>Local port number to accept connections</help>
+ <constraint>
+ <validator name="numeric" argument="--range 1024-65535"/>
+ </constraint>
</properties>
</leafNode>
<tagNode name="peer">