From b1c9aff653edc8914e77777fb6f2740e23b73ac8 Mon Sep 17 00:00:00 2001 From: Daniel Becker Date: Sun, 27 Apr 2014 16:09:50 -0700 Subject: 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.) --- usr/local/pkg/miniupnpd.inc | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'usr/local') 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; -- cgit v1.1