aboutsummaryrefslogtreecommitdiffstats
path: root/packages/miniupnpd
diff options
context:
space:
mode:
Diffstat (limited to 'packages/miniupnpd')
-rw-r--r--packages/miniupnpd/miniupnpd.inc3
1 files changed, 2 insertions, 1 deletions
diff --git a/packages/miniupnpd/miniupnpd.inc b/packages/miniupnpd/miniupnpd.inc
index 8860213a..5641148d 100644
--- a/packages/miniupnpd/miniupnpd.inc
+++ b/packages/miniupnpd/miniupnpd.inc
@@ -9,13 +9,14 @@
$if_final = "";
$ifaces_final = "";
$first = 0;
+ $wanif = get_real_wan_interface();
foreach($_POST['interface_array'] as $iface) {
$if = convert_friendly_interface_to_real_interface_name($iface);
if($if) {
//if($first == 1)
//$ifaces_final .= ",";
$addr = find_interface_ip($if);
- $ifaces_final .= " -i {$if} -a {$addr}";
+ $ifaces_final .= " -i {$wanif} -a {$addr}";
$first = 1;
} else {
log_error("Could not resolve real interfaec {$iface}");