summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThomas Weißschuh2021-10-24 08:59:57 +0000
committerJo-Philipp Wich2021-10-24 09:51:17 +0000
commiteb0a3ee812d48f1faecbf6258c293e475b4016a0 (patch)
treed3d8ab93c06233aef06cd30494f5569fd3ecf62f
parentc5a8e3ef0f22bafbc4bee4e69f2166d0494cf5d3 (diff)
downloadfirewall4-eb0a3ee812d48f1faecbf6258c293e475b4016a0.tar.gz
fw4.uc: Do not quote port ranges
This fixes the translation of rules like the following: config rule ... option dest_port '67:68' Signed-off-by: Thomas Weißschuh <thomas@t-8ch.de>
-rw-r--r--root/usr/share/ucode/fw4.uc2
1 files changed, 1 insertions, 1 deletions
diff --git a/root/usr/share/ucode/fw4.uc b/root/usr/share/ucode/fw4.uc
index f0e180d..c07b355 100644
--- a/root/usr/share/ucode/fw4.uc
+++ b/root/usr/share/ucode/fw4.uc
@@ -1374,7 +1374,7 @@ return {
},
quote: function(s, force) {
- if (force === true || !match(s, /^([0-9A-Fa-f:.\/]+)( \. [0-9A-Fa-f:.\/]+)*$/))
+ if (force === true || !match(s, /^([0-9A-Fa-f:.\/-]+)( \. [0-9A-Fa-f:.\/-]+)*$/))
return sprintf('"%s"', replace(s + "", /(["\\])/g, '\\$1'));
return s;