From a2b1d1e89cb43680a05df1068e855a5f506f2b2c Mon Sep 17 00:00:00 2001 From: jim-p Date: Fri, 4 Jan 2013 12:37:27 -0500 Subject: [PATCH] This seems to break upnp for IPv4 in other ways, and we have since disabled IPv6 in the daemon while compiling anyhow. Revert "In order for miniupnpd to latch onto IPv6, we just need to give the interface name here, not the subnet. The daemon is smart enough to latch onto the right subnet(s) here anyhow." This reverts commit bc8a1938f5c1797213bf849f2bdb88bca72d5089. --- usr/local/pkg/miniupnpd.inc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/usr/local/pkg/miniupnpd.inc b/usr/local/pkg/miniupnpd.inc index ed46dbe13b..92c0ab08ea 100644 --- a/usr/local/pkg/miniupnpd.inc +++ b/usr/local/pkg/miniupnpd.inc @@ -138,9 +138,10 @@ /* above function returns iface if fail */ if($if!=$iface) { $addr = find_interface_ip($if); + $bits = find_interface_subnet($if); /* check that the interface has an ip address before adding parameters */ if (is_ipaddr($addr)) { - $config_text .= "listening_ip={$if}\n"; + $config_text .= "listening_ip={$addr}/{$bits}\n"; if(!$ifaces_active) { $webgui_ip = $addr; $ifaces_active = $iface;