Sfoglia il codice sorgente

firewall: fix port range quirk in previous commit

SVN-Revision: 27335
Jo-Philipp Wich 14 anni fa
parent
commit
600a8517ad
1 ha cambiato i file con 2 aggiunte e 2 eliminazioni
  1. 2 2
      package/firewall/files/reflection.hotplug

+ 2 - 2
package/firewall/files/reflection.hotplug

@@ -71,13 +71,13 @@ if [ "$ACTION" = "add" ] && [ "$INTERFACE" = "wan" ]; then
 				[ -n "$extport" ] || return
 
 				epmin="${extport%[-:]*}"; epmax="${extport#*[-:]}"
-				[ "$epmin" != "$epmax" ] || epmax=""
+				[ "${epmin#!}" != "$epmax" ] || epmax=""
 
 				local ipmin ipmax intport
 				config_get intport "$cfg" dest_port "$extport"
 
 				ipmin="${intport%[-:]*}"; ipmax="${intport#*[-:]}"
-				[ "$ipmin" != "$ipmax" ] || ipmax=""
+				[ "${ipmin#!}" != "$ipmax" ] || ipmax=""
 
 				local exthost
 				config_get exthost "$cfg" src_dip "$wanip"