Changeset 29673


Ignore:
Timestamp:
2012-01-07T14:32:30+01:00 (6 years ago)
Author:
jow
Message:

[packages] miniupnpd: append netmask to listening_ip, fixes miniupnpd with non-/24 prefixes

Location:
packages/net/miniupnpd
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • packages/net/miniupnpd/Makefile

    r29178 r29673  
    1111PKG_NAME:=miniupnpd 
    1212PKG_VERSION:=1.6.20110730 
    13 PKG_RELEASE:=2 
     13PKG_RELEASE:=3 
    1414 
    1515PKG_SOURCE_URL:=http://miniupnp.free.fr/files 
  • packages/net/miniupnpd/files/miniupnpd.init

    r29178 r29673  
    107107                local iface 
    108108                for iface in ${intiface:-lan}; do 
    109                         local ipaddr 
     109                        local ipaddr netmask 
    110110                        config_get ipaddr "$iface" ipaddr 
     111                        config_get netmask "$iface" netmask "255.255.255.0" 
    111112                        [ -n "$ipaddr" ] && \ 
    112                                 echo "listening_ip=$ipaddr" >>$tmpconf 
     113                                echo "listening_ip=$ipaddr/$netmask" >>$tmpconf 
    113114                done 
    114115 
Note: See TracChangeset for help on using the changeset viewer.