From 8718669cafdb241a7b801489ba0d6dd20f8d1e7e Mon Sep 17 00:00:00 2001 From: Renato Botelho Date: Fri, 19 Sep 2014 16:53:48 -0300 Subject: [PATCH] Recent versions of miniupnpd does not accept IPv4 address anymore, use interface name always. It fixes #3874 --- usr/local/pkg/miniupnpd.inc | 5 +---- usr/local/pkg/miniupnpd.xml | 7 +------ 2 files changed, 2 insertions(+), 10 deletions(-) diff --git a/usr/local/pkg/miniupnpd.inc b/usr/local/pkg/miniupnpd.inc index 31067d0b55..4cad0e5136 100644 --- a/usr/local/pkg/miniupnpd.inc +++ b/usr/local/pkg/miniupnpd.inc @@ -159,10 +159,7 @@ $bits = find_interface_subnet($if); /* check that the interface has an ip address before adding parameters */ if (is_ipaddr($addr)) { - if ($upnp_config['listen_on_iface']) - $config_text .= "listening_ip={$if}\n"; - else - $config_text .= "listening_ip={$addr}/{$bits}\n"; + $config_text .= "listening_ip={$if}\n"; if(!$ifaces_active) { $webgui_ip = $addr; $ifaces_active = $iface; diff --git a/usr/local/pkg/miniupnpd.xml b/usr/local/pkg/miniupnpd.xml index d8292100e0..9aa02398a1 100644 --- a/usr/local/pkg/miniupnpd.xml +++ b/usr/local/pkg/miniupnpd.xml @@ -35,7 +35,7 @@ UPnP & NAT-PMP Settings listtopic - enable_upnp,enable_natpmp,listen_on_iface,iface_array,overridewanip,upnpqueue,logpackets,sysuptime,permdefault,permuser1,permuser2,permuser3,permuser4 + enable_upnp,enable_natpmp,iface_array,overridewanip,upnpqueue,logpackets,sysuptime,permdefault,permuser1,permuser2,permuser3,permuser4 Enable UPnP & NAT-PMP @@ -80,11 +80,6 @@ You can use the CTRL or COMMAND key to select multiple interfaces. - - Listen on interface instead of interface's IPv4 address - listen_on_iface - checkbox - Maximum Download Speed (Kbits/second) download