projects
/
project
/
firewall4.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c5a8e3e
)
fw4.uc: Do not quote port ranges
author
Thomas Weißschuh
<thomas@t-8ch.de>
Sun, 24 Oct 2021 08:59:57 +0000
(10:59 +0200)
committer
Jo-Philipp Wich
<jo@mein.io>
Sun, 24 Oct 2021 09:51:17 +0000
(11:51 +0200)
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>
root/usr/share/ucode/fw4.uc
patch
|
blob
|
history
diff --git
a/root/usr/share/ucode/fw4.uc
b/root/usr/share/ucode/fw4.uc
index f0e180d764d79578760cd2f55ec513b23958080d..c07b35567aaa5157f0302fb4f797c9a533499248 100644
(file)
--- 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;