diff options
author | Renato Botelho <garga@FreeBSD.org> | 2014-09-19 16:53:48 -0300 |
---|---|---|
committer | Renato Botelho <garga@FreeBSD.org> | 2014-09-19 16:53:48 -0300 |
commit | 8718669cafdb241a7b801489ba0d6dd20f8d1e7e (patch) | |
tree | 7a76e84b9631dcecda46ccd1162f28c7b5ac6525 /usr/local/pkg/miniupnpd.inc | |
parent | de29dadc20688daa579937fbd8b4dfdcae3587e6 (diff) | |
download | pfsense-8718669cafdb241a7b801489ba0d6dd20f8d1e7e.zip pfsense-8718669cafdb241a7b801489ba0d6dd20f8d1e7e.tar.gz |
Recent versions of miniupnpd does not accept IPv4 address anymore, use interface name always. It fixes #3874
Diffstat (limited to 'usr/local/pkg/miniupnpd.inc')
-rw-r--r-- | usr/local/pkg/miniupnpd.inc | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/usr/local/pkg/miniupnpd.inc b/usr/local/pkg/miniupnpd.inc index 31067d0..4cad0e5 100644 --- a/usr/local/pkg/miniupnpd.inc +++ b/usr/local/pkg/miniupnpd.inc @@ -159,10 +159,7 @@ $bits = find_interface_subnet($if); /* check that the interface has an ip address before adding parameters */ if (is_ipaddr($addr)) { - if ($upnp_config['listen_on_iface']) - $config_text .= "listening_ip={$if}\n"; - else - $config_text .= "listening_ip={$addr}/{$bits}\n"; + $config_text .= "listening_ip={$if}\n"; if(!$ifaces_active) { $webgui_ip = $addr; $ifaces_active = $iface; |