aboutsummaryrefslogtreecommitdiffstats
path: root/packages/miniupnpd
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2006-08-20 01:38:16 +0000
committerScott Ullrich <sullrich@pfsense.org>2006-08-20 01:38:16 +0000
commitd700d20ff3c25f776467a75c79672c5e36970010 (patch)
treef6768ac84f154e5056b296a5bfdd7092f436fe3e /packages/miniupnpd
parent665165fa4e5b888eaea1ef63e8553d05498238d7 (diff)
downloadpfsense-packages-d700d20ff3c25f776467a75c79672c5e36970010.tar.gz
pfsense-packages-d700d20ff3c25f776467a75c79672c5e36970010.tar.bz2
pfsense-packages-d700d20ff3c25f776467a75c79672c5e36970010.zip
Correctly specify external interface
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}");