summaryrefslogtreecommitdiffstats
path: root/usr/local/pkg
diff options
context:
space:
mode:
authorjim-p <jimp@pfsense.org>2012-08-02 10:23:18 -0400
committerjim-p <jimp@pfsense.org>2012-08-02 10:23:18 -0400
commitbc8a1938f5c1797213bf849f2bdb88bca72d5089 (patch)
tree4681810a298d8c5572562a47ba11ba8d76b15a76 /usr/local/pkg
parentf6189bec5422ff5b1febb7a47839bce7bf0cf1b5 (diff)
downloadpfsense-bc8a1938f5c1797213bf849f2bdb88bca72d5089.zip
pfsense-bc8a1938f5c1797213bf849f2bdb88bca72d5089.tar.gz
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.
Diffstat (limited to 'usr/local/pkg')
-rw-r--r--usr/local/pkg/miniupnpd.inc3
1 files changed, 1 insertions, 2 deletions
diff --git a/usr/local/pkg/miniupnpd.inc b/usr/local/pkg/miniupnpd.inc
index db953d1..5d3ffd7 100644
--- a/usr/local/pkg/miniupnpd.inc
+++ b/usr/local/pkg/miniupnpd.inc
@@ -136,10 +136,9 @@
/* 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}/{$bits}\n";
+ $config_text .= "listening_ip={$if}\n";
if(!$ifaces_active) {
$webgui_ip = $addr;
$ifaces_active = $iface;
OpenPOWER on IntegriCloud