diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2006-08-20 01:38:16 +0000 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2006-08-20 01:38:16 +0000 |
commit | d700d20ff3c25f776467a75c79672c5e36970010 (patch) | |
tree | f6768ac84f154e5056b296a5bfdd7092f436fe3e | |
parent | 665165fa4e5b888eaea1ef63e8553d05498238d7 (diff) | |
download | pfsense-packages-d700d20ff3c25f776467a75c79672c5e36970010.tar.gz pfsense-packages-d700d20ff3c25f776467a75c79672c5e36970010.tar.bz2 pfsense-packages-d700d20ff3c25f776467a75c79672c5e36970010.zip |
Correctly specify external interface
-rw-r--r-- | packages/miniupnpd/miniupnpd.inc | 3 |
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}"); |