aboutsummaryrefslogtreecommitdiff
path: root/tools/boca-submit-logroot
diff options
context:
space:
mode:
Diffstat (limited to 'tools/boca-submit-logroot')
-rw-r--r--tools/boca-submit-logroot4
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/boca-submit-logroot b/tools/boca-submit-logroot
index 901da3c..836225e 100644
--- a/tools/boca-submit-logroot
+++ b/tools/boca-submit-logroot
@@ -32,7 +32,7 @@ if [ "$res" != "0" ]; then
fi
done
temp=/root/.temp.`date +%s%N`.txt
- md=`wget --no-check-certificate -t 2 -T 5 -S https://$BOCASERVER/boca/logexternal.php -O /dev/null --save-cookies ${temp}.cookie.txt --keep-session-cookies 2>&1 | grep PHPSESS | tail -n1`
+ md=`wget -4 --no-check-certificate -t 2 -T 5 -S https://$BOCASERVER/boca/logexternal.php -O /dev/null --save-cookies ${temp}.cookie.txt --keep-session-cookies 2>&1 | grep PHPSESS | tail -n1`
echo "$md" | grep -q PHPSESS
if [ "$?" == "0" ]; then
md=`echo $md | cut -f2 -d'=' | cut -f1 -d';'`
@@ -44,7 +44,7 @@ if [ "$res" != "0" ]; then
echo -n "&data=" >> $temp
grep "^>" /root/.logroot.diff | uuencode -m zzzzzzzzzz | grep -v "begin-base64.*zzzzzzzzzz" | perl -MURI::Escape -lne 'print uri_escape($_)' >> $temp
- wget --no-check-certificate -t 2 -T 5 "https://$BOCASERVER/boca/logexternal.php" --load-cookies ${temp}.cookie.txt --keep-session-cookies --save-cookies ${temp}.cookie.txt -O ${temp}.out --post-file=$temp >/dev/null 2>/dev/null
+ wget -4 --no-check-certificate -t 2 -T 5 "https://$BOCASERVER/boca/logexternal.php" --load-cookies ${temp}.cookie.txt --keep-session-cookies --save-cookies ${temp}.cookie.txt -O ${temp}.out --post-file=$temp >/dev/null 2>/dev/null
rm -f $temp
rm -f ${temp}.cookie.txt
grep -qi incorrect ${temp}.out