_
This commit is contained in:
parent
20b408ee56
commit
be23666592
13
test.sh.php
13
test.sh.php
|
@ -1,13 +1,10 @@
|
||||||
<?php require('./config.php'); ?>
|
<?php require('./config.php'); ?>
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
while :
|
if export http_proxy=http://<?php echo PROXY_USERNAME; ?>:<?php echo PROXY_PASSWORD; ?>@localhost:<?php echo PROXY_PORT; ?> && wget -qO- http://ifconfig.me/ip; then
|
||||||
do
|
exit 0;
|
||||||
if export http_proxy=http://<?php echo PROXY_USERNAME; ?>:<?php echo PROXY_PASSWORD; ?>@localhost:<?php echo PROXY_PORT; ?> && wget -qO- http://ifconfig.me/ip; then
|
else
|
||||||
sleep 1;
|
|
||||||
else
|
|
||||||
echo "test failed";
|
echo "test failed";
|
||||||
init 6;
|
init 6;
|
||||||
break;
|
exit 1;
|
||||||
fi
|
fi
|
||||||
done
|
|
Loading…
Reference in a new issue