From 2d57f3b754fff812af2734edbd439079b93ac1f2 Mon Sep 17 00:00:00 2001 From: Scott Ullrich Date: Thu, 28 Sep 2006 20:30:52 +0000 Subject: Add -o support --- packages/miniupnpd/miniupnpd.inc | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'packages/miniupnpd/miniupnpd.inc') diff --git a/packages/miniupnpd/miniupnpd.inc b/packages/miniupnpd/miniupnpd.inc index e4d02402..933e58cb 100644 --- a/packages/miniupnpd/miniupnpd.inc +++ b/packages/miniupnpd/miniupnpd.inc @@ -28,6 +28,10 @@ $start .= "/sbin/pfctl -aminiupnpd -Fn 2>&1 >/dev/null\n"; $start .= "/usr/local/sbin/miniupnpd -p 2869{$ifaces_final}"; + /* override wan ip address, common for carp, etc */ + if($_POST['overridewanip']) + $start .= " -o {$overridewanip}"; + $stop .= "/usr/bin/killall miniupnpd \n"; $stop .= "# Clear existing rules and rdr entries \n"; $stop .= "/sbin/pfctl -aminiupnpd -Fr 2>&1 >/dev/null\n"; -- cgit v1.2.3