Changeset 21642


Ignore:
Timestamp:
2010-05-31T03:34:47+02:00 (7 years ago)
Author:
jow
Message:

[package] firewall: change the order of IPv4/IPv6 address detection, fixes mixed notation v6 improperly detected as v4 address

Location:
trunk/package/firewall/files/lib
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/package/firewall/files/lib/config.sh

    r21640 r21642  
    8888        local vers= 
    8989        case "$addr" in 
     90                *:*) vers=6; mask="${mask:-128}" ;; 
    9091                *.*) vers=4; mask="${mask:-32}" ;; 
    91                 *:*) vers=6; mask="${mask:-128}" ;; 
    9292        esac 
    9393         
  • trunk/package/firewall/files/lib/fw.sh

    r21508 r21642  
    5252                while [ "$1" != '}' ]; do 
    5353                        case "$1" in 
     54                                *:*) ip6=1 ;; 
    5455                                *.*.*.*) ip4=1 ;; 
    55                                 *:*) ip6=1 ;; 
    5656                        esac 
    5757                        shift 
Note: See TracChangeset for help on using the changeset viewer.