From 5034a7f563390621c05a6f1e5af955af28eceede Mon Sep 17 00:00:00 2001 From: jim-p Date: Fri, 4 Jan 2013 12:38:56 -0500 Subject: Add this fix here too for upnp, set the bits when specifying the listening IP. --- usr/local/pkg/miniupnpd.inc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'usr/local') diff --git a/usr/local/pkg/miniupnpd.inc b/usr/local/pkg/miniupnpd.inc index f52214b..db953d1 100644 --- a/usr/local/pkg/miniupnpd.inc +++ b/usr/local/pkg/miniupnpd.inc @@ -136,9 +136,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={$addr}\n"; + $config_text .= "listening_ip={$addr}/{$bits}\n"; if(!$ifaces_active) { $webgui_ip = $addr; $ifaces_active = $iface; -- cgit v1.1