Changeset 26206


Ignore:
Timestamp:
2011-03-17T20:06:27+01:00 (7 years ago)
Author:
cshore
Message:

[net] IP Addresses and Names: Fixed using single IP addresses instead of always required n.n.n.n/n even for single IP's.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • packages/net/miniupnpd/files/miniupnpd.init

    r25958 r26206  
    2929    config_get int_addr "$cfg" int_addr "0.0.0.0/0"       # ip or network and subnet mask (internal) 
    3030    upnpd_get_port_range "int" "$cfg" int_ports "0-65535" # internal ports: x, x-y, x:y or range 
     31    # Make a single IP IP/32 so that miniupnpd.conf can use it. 
     32    case "$int_addr" in 
     33        */*) ;; 
     34        *) int_addr="$int_addr/32"  ;; 
     35    esac 
    3136    echo "${action} ${ext_start}${ext_end:+-}${ext_end} ${int_addr} ${int_start}${int_end:+-}${int_end}" >>$tmpconf    
    3237} 
Note: See TracChangeset for help on using the changeset viewer.