diff options
author | smos <seth.mos@dds.nl> | 2012-04-18 17:40:25 +0200 |
---|---|---|
committer | smos <seth.mos@dds.nl> | 2012-04-18 17:40:25 +0200 |
commit | eaa477d2d658a49e102298d939d17350f3788765 (patch) | |
tree | 746dbd4442e58c8c9e814f6409f9993571e6a285 /usr/local/pkg | |
parent | c3ce2eced406efb771f0dc796633c7489cc944ba (diff) | |
download | pfsense-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.inc | 3 |
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; |