mirror of
https://github.com/opnsense/plugins.git
synced 2026-05-28 04:34:15 -04:00
net/upnp: actually use get_interface_ip() which is backwards compatible
PR: https://github.com/opnsense/core/issues/4749
This commit is contained in:
parent
55b620034b
commit
a395ee96dc
1 changed files with 1 additions and 1 deletions
|
|
@ -148,7 +148,7 @@ function miniupnpd_configure_do($verbose = false)
|
|||
$if = get_real_interface($iface);
|
||||
/* above function returns iface if fail */
|
||||
if ($if != $iface) {
|
||||
list ($addr) = interfaces_primary_address($iface);
|
||||
$addr = get_interface_ip($iface);
|
||||
if (!empty($addr)) {
|
||||
$config_text .= "listening_ip={$if}\n";
|
||||
if (!$ifaces_active) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue