summaryrefslogtreecommitdiffhomepage
path: root/applications/luci-app-statistics/root/usr/libexec
diff options
context:
space:
mode:
Diffstat (limited to 'applications/luci-app-statistics/root/usr/libexec')
-rwxr-xr-xapplications/luci-app-statistics/root/usr/libexec/stat-genconfig6
1 files changed, 3 insertions, 3 deletions
diff --git a/applications/luci-app-statistics/root/usr/libexec/stat-genconfig b/applications/luci-app-statistics/root/usr/libexec/stat-genconfig
index 1bf622d9c1..f184e880b2 100755
--- a/applications/luci-app-statistics/root/usr/libexec/stat-genconfig
+++ b/applications/luci-app-statistics/root/usr/libexec/stat-genconfig
@@ -196,7 +196,7 @@ function config_iptables(c) {
let tname = `${s.table}`;
let chain = `${s.chain}`;
- if (match(tname, /^\S+$/) && match(chain, /^\S+$/) && match(rule, /^\S+$/) && match(name, /^\S+$/)) {
+ if (match(tname, /^\S+$/) && match(chain, /^\S+$/) {
str += `\t${verb} "${tname}" "${chain}"`;
let rule = `${s.rule}`;
@@ -208,10 +208,10 @@ function config_iptables(c) {
if (match(name, /^\S+$/))
str += ` "${name}"`;
- }
+ }
- str += '\n';
}
+ str += '\n';
}
}
}