From d700d20ff3c25f776467a75c79672c5e36970010 Mon Sep 17 00:00:00 2001 From: Scott Ullrich Date: Sun, 20 Aug 2006 01:38:16 +0000 Subject: Correctly specify external interface --- packages/miniupnpd/miniupnpd.inc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'packages/miniupnpd') 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}"); -- cgit v1.2.3