summaryrefslogtreecommitdiffstats
path: root/usr/local/pkg
diff options
context:
space:
mode:
authorjim-p <jimp@pfsense.org>2013-01-04 12:38:56 -0500
committerjim-p <jimp@pfsense.org>2013-01-04 12:38:56 -0500
commit5034a7f563390621c05a6f1e5af955af28eceede (patch)
tree495f06541d153fb5eb0b36c5f55d5232776d8bd3 /usr/local/pkg
parent5b66196d466c4ada57d821172262f336c3513664 (diff)
downloadpfsense-5034a7f563390621c05a6f1e5af955af28eceede.zip
pfsense-5034a7f563390621c05a6f1e5af955af28eceede.tar.gz
Add this fix here too for upnp, set the bits when specifying the listening IP.
Diffstat (limited to 'usr/local/pkg')
-rw-r--r--usr/local/pkg/miniupnpd.inc3
1 files changed, 2 insertions, 1 deletions
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;
OpenPOWER on IntegriCloud