tor-router/test.sh.php
Zachary Robert Thomas Boyd f750161680 _
2014-03-09 01:01:16 -05:00

12 lines
281 B
PHP

<?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";
break;
fi
done