summaryrefslogtreecommitdiff
path: root/interface-definitions
diff options
context:
space:
mode:
Diffstat (limited to 'interface-definitions')
-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>