Changeset 13792


Ignore:
Timestamp:
2009-01-01T14:08:15+01:00 (8 years ago)
Author:
cyrus
Message:

Backport r13791 to 8.09

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/8.09/package/firewall/files/uci_firewall.sh

    r13789 r13792  
    218218        config_get target $1 target 
    219219        config_get ruleset $1 ruleset 
     220 
     221        src_port_first=${src_port%-*} 
     222        src_port_last=${src_port#*-} 
     223        [ "$src_port_first" -ne "$src_port_last" ] && { \ 
     224                src_port="$src_port_first:$src_port_last"; } 
     225 
     226        dest_port_first=${dest_port%-*} 
     227        dest_port_last=${dest_port#*-} 
     228        [ "$dest_port_first" -ne "$dest_port_last" ] && { \ 
     229                dest_port="$dest_port_first:$dest_port_last"; } 
    220230         
    221231        ZONE=input 
Note: See TracChangeset for help on using the changeset viewer.