diff options
author | hagbard <vyosdev@derith.de> | 2018-08-23 11:31:07 -0700 |
---|---|---|
committer | hagbard <vyosdev@derith.de> | 2018-08-23 11:31:07 -0700 |
commit | 810906cf4c3e7ea8261b21a70ba5d5e71c4c7484 (patch) | |
tree | 435df9d5e4cad3bae5f84eceaa3fc39c70e72048 /interface-definitions | |
parent | 5866fba00b77463ce29fa5700b9e89e783fea831 (diff) | |
download | vyos-1x-810906cf4c3e7ea8261b21a70ba5d5e71c4c7484.tar.gz vyos-1x-810906cf4c3e7ea8261b21a70ba5d5e71c4c7484.zip |
adding validation for listen-port
Diffstat (limited to 'interface-definitions')
-rw-r--r-- | interface-definitions/wireguard.xml | 3 |
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"> |