summaryrefslogtreecommitdiff
path: root/interface-definitions/syslog.xml
diff options
context:
space:
mode:
authorhagbard <vyosdev@derith.de>2018-07-24 15:30:24 -0700
committerhagbard <vyosdev@derith.de>2018-07-24 15:30:24 -0700
commit0fdfe533cd2bad844b1c0cd98c62a7e1866c481c (patch)
treed4d2dd6b240272ac20cbcaace7c513ecee307c74 /interface-definitions/syslog.xml
parentf1222dadfd0b25ef62d9862f2e3b239bcfb24096 (diff)
downloadvyos-1x-0fdfe533cd2bad844b1c0cd98c62a7e1866c481c.tar.gz
vyos-1x-0fdfe533cd2bad844b1c0cd98c62a7e1866c481c.zip
T736: hostname check for the occurence of white spaces
Diffstat (limited to 'interface-definitions/syslog.xml')
-rw-r--r--interface-definitions/syslog.xml6
1 files changed, 5 insertions, 1 deletions
diff --git a/interface-definitions/syslog.xml b/interface-definitions/syslog.xml
index 050cff41b..0776fff56 100644
--- a/interface-definitions/syslog.xml
+++ b/interface-definitions/syslog.xml
@@ -173,10 +173,14 @@
<tagNode name="host">
<properties>
<help>Logging to a remote host</help>
+ <constraint>
+ <!-- at least let's make sure whitespace isn't allowed, ideally it should be checked for IPv4/IPv6 address or fqdn/hostname -->
+ <regex>[^ ]{1,63}</regex>
+ </constraint>
+ <constraintErrorMessage>illegal characters in user</constraintErrorMessage>
<valueHelp>
<format>x.x.x.x or host.domain.tld</format>
<description>Remote host name or IP address</description>
- <!-- regex host or IP check? -->
</valueHelp>
</properties>
<children>