From c349a6d4139437f86bc9724acdd802b450096b10 Mon Sep 17 00:00:00 2001 From: Felix Fietkau Date: Sun, 5 Mar 2006 21:50:44 +0000 Subject: [PATCH] fix typo SVN-Revision: 3315 --- .../base-files/default/usr/lib/common.awk | 17 ++++++----------- 1 file changed, 6 insertions(+), 11 deletions(-) diff --git a/openwrt/package/base-files/default/usr/lib/common.awk b/openwrt/package/base-files/default/usr/lib/common.awk index 860c6492e2..11454cec19 100644 --- a/openwrt/package/base-files/default/usr/lib/common.awk +++ b/openwrt/package/base-files/default/usr/lib/common.awk @@ -1,16 +1,11 @@ function portstr(type, str) { - if (str ~ /^[0-9]+-[0-9]+$/) { - gsub(/-/, ":", str) - if (type == "src") return " --sport " str - else return " --dport " str - } else { - if (insmod_mport != 1) { - print "insmod ipt_multiport >&- 2>&-" - insmod_mport = 1 - } - if (type == "src") return " -m multiport --sports " str - else return " -m multiport --dports " str + gsub(/-/, ":", str) + if (insmod_mport != 1) { + print "insmod ipt_multiport >&- 2>&-" + insmod_mport = 1 } + if (type == "src") return " -m multiport --sports " str + else return " -m multiport --dports " str } function str2ipt(str) { -- 2.30.2