summaryrefslogtreecommitdiffstats
path: root/usr/local/pkg
diff options
context:
space:
mode:
authorsmos <seth.mos@dds.nl>2012-04-18 17:40:25 +0200
committersmos <seth.mos@dds.nl>2012-04-18 17:40:25 +0200
commiteaa477d2d658a49e102298d939d17350f3788765 (patch)
tree746dbd4442e58c8c9e814f6409f9993571e6a285 /usr/local/pkg
parentc3ce2eced406efb771f0dc796633c7489cc944ba (diff)
downloadpfsense-eaa477d2d658a49e102298d939d17350f3788765.zip
pfsense-eaa477d2d658a49e102298d939d17350f3788765.tar.gz
Add the subnet bits to the config
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..9991e17 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