tor-router/test.sh.php

13 lines
291 B
PHP
Raw Normal View History

2014-03-09 06:01:16 +00:00
<?php require('./config.php'); ?>
#!/bin/bash
while :
do
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
sleep 1;
else
echo "test failed";
2014-03-19 13:17:56 +00:00
init 6;
2014-03-09 06:01:16 +00:00
break;
fi
done