summaryrefslogtreecommitdiffstats
path: root/usr/local/pkg
diff options
context:
space:
mode:
authorDaniel Becker <razzfazz@gmail.com>2014-04-27 16:20:01 -0700
committerDaniel Becker <razzfazz@gmail.com>2014-04-27 16:20:01 -0700
commit3f986e2dc97d1f3a14505d6d9051aae0e36a67c0 (patch)
tree3aea3ebcda4bf77ed5f7c1b6206e7dd5381f881f /usr/local/pkg
parenta5303b6e0e8373a9b10b19715e3189216ea3e37a (diff)
downloadpfsense-3f986e2dc97d1f3a14505d6d9051aae0e36a67c0.zip
pfsense-3f986e2dc97d1f3a14505d6d9051aae0e36a67c0.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.)
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 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