diff options
author | Viacheslav Hletenko <v.gletenko@vyos.io> | 2022-06-10 14:57:11 +0000 |
---|---|---|
committer | Viacheslav Hletenko <v.gletenko@vyos.io> | 2022-06-10 15:30:17 +0000 |
commit | 76684692f8976aa567cf896586b4e6d3b00385f9 (patch) | |
tree | dd13d7fdfbb7d75524e44bcc26e5317f2f95031a /interface-definitions | |
parent | fcad9572e880ab5dd71636e0aa4842dc8997bc44 (diff) | |
download | vyos-1x-76684692f8976aa567cf896586b4e6d3b00385f9.tar.gz vyos-1x-76684692f8976aa567cf896586b4e6d3b00385f9.zip |
firewall: T970: Fix for Regex for domain and check empty group
It can be more then 5 symbols in top-level-domain address
for example '.photography' and '.accountants'
Firewall group can be added without address:
* set firewall group domain-group DOMAIN
Check if 'address' exists in group_config
Diffstat (limited to 'interface-definitions')
-rw-r--r-- | interface-definitions/firewall.xml.in | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/interface-definitions/firewall.xml.in b/interface-definitions/firewall.xml.in index 63095bc20..3250794d3 100644 --- a/interface-definitions/firewall.xml.in +++ b/interface-definitions/firewall.xml.in @@ -117,7 +117,7 @@ <description>Domain address to match</description> </valueHelp> <constraint> - <regex>[a-z0-9]+([\-\.]{1}[a-z0-9]+)*\.[a-z]{2,5}?(\/.*)?</regex> + <regex>[a-z0-9]+([\-\.]{1}[a-z0-9]+)*\.[a-z]{2,99}?(\/.*)?</regex> </constraint> <multi/> </properties> |