summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDaniel Becker <razzfazz@gmail.com>2014-04-27 16:09:50 -0700
committerDaniel Becker <razzfazz@gmail.com>2014-04-27 16:09:50 -0700
commitb1c9aff653edc8914e77777fb6f2740e23b73ac8 (patch)
treecf336198595a7920f78494c532768c70e468a23c
parent549b7ce250b5d2faf4f4d9ea414ff0f23d3685fe (diff)
downloadpfsense-b1c9aff653edc8914e77777fb6f2740e23b73ac8.zip
pfsense-b1c9aff653edc8914e77777fb6f2740e23b73ac8.tar.gz
make miniupnpd listen on interface instead of IP
The 'listening_ip' option in miniupnpd.conf can accept an interface name directly instead of having to translate it to an IPv4 address first. (This is actually required if IPv6 support is enabled.)
-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 a7ebfb6..7f37d72 100644
--- a/usr/local/pkg/miniupnpd.inc
+++ b/usr/local/pkg/miniupnpd.inc
@@ -156,10 +156,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