diff options
author | Ryan Wagoner <rsw686@pfsense.org> | 2006-11-24 01:40:39 +0000 |
---|---|---|
committer | Ryan Wagoner <rsw686@pfsense.org> | 2006-11-24 01:40:39 +0000 |
commit | b5adf62c75a45bc09fdd93201f297304c9ead2d0 (patch) | |
tree | fbc380b6ae20c1b969dbbeede04e35aecb939eb8 /packages/miniupnpd/miniupnpd.inc | |
parent | 909907fa2b59d290c6bd0653c263a1c5635cdb38 (diff) | |
download | pfsense-packages-b5adf62c75a45bc09fdd93201f297304c9ead2d0.tar.gz pfsense-packages-b5adf62c75a45bc09fdd93201f297304c9ead2d0.tar.bz2 pfsense-packages-b5adf62c75a45bc09fdd93201f297304c9ead2d0.zip |
bump miniupnpd version -- fixes http socket address in use
Diffstat (limited to 'packages/miniupnpd/miniupnpd.inc')
-rw-r--r-- | packages/miniupnpd/miniupnpd.inc | 30 |
1 files changed, 17 insertions, 13 deletions
diff --git a/packages/miniupnpd/miniupnpd.inc b/packages/miniupnpd/miniupnpd.inc index e69dcb26..fa5160c6 100644 --- a/packages/miniupnpd/miniupnpd.inc +++ b/packages/miniupnpd/miniupnpd.inc @@ -102,19 +102,23 @@ } /* valid paramters lets create rc file and start miniupnpd */ - - $stop = "if [ `pgrep miniupnpd | wc -l` != 0 ]; then\n"; - $stop .= "\t\t/usr/bin/killall miniupnpd\n"; - $stop .= "\t\twhile [ `pgrep miniupnpd | wc -l` != 0 ]; do sleep 1; done\n"; - $stop .= "\tfi\n"; - $stop .= "\t# Clear existing rules and rdr entries\n"; - $stop .= "\tif [ `pfctl -aminiupnpd -sr | wc -l` != 0 ]; then\n"; - $stop .= "\t\t/sbin/pfctl -aminiupnpd -Fr 2>&1 >/dev/null\n"; - $stop .= "\tfi\n"; - $stop .= "\tif [ `pfctl -aminiupnpd -sn | wc -l` != 0 ]; then\n"; - $stop .= "\t\t/sbin/pfctl -aminiupnpd -Fn 2>&1 >/dev/null\n"; - $stop .= "\tfi"; - + + $stop = <<<EOD +if [ `pgrep miniupnpd | wc -l` != 0 ]; then + /usr/bin/killall miniupnpd + while [ `pgrep miniupnpd | wc -l` != 0 ]; do + sleep 1 + done + fi + # Clear existing rules and rdr entries + if [ `pfctl -aminiupnpd -sr | wc -l` != 0 ]; then + /sbin/pfctl -aminiupnpd -Fr 2>&1 >/dev/null + fi + if [ `pfctl -aminiupnpd -sn | wc -l` != 0 ]; then + /sbin/pfctl -aminiupnpd -Fn 2>&1 >/dev/null + fi +EOD; + $start = $stop."\n\t/usr/local/sbin/miniupnpd -p 2869 -i {$wanif}{$ifaces_final}"; /* define maximum downstream and upstream bitrates */ |