changeset 504:83bc7f6e03ae draft

bug fix in powerfulproxy
author Nick <nick@somerandomnick.ano>
date Wed, 11 May 2011 05:49:51 +0000
parents 1ca0de1bb813
children 45192a31ef54
files doc/www.powerfulproxy.com/public_html/do_it.php
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/doc/www.powerfulproxy.com/public_html/do_it.php	Wed May 11 05:33:56 2011 +0000
+++ b/doc/www.powerfulproxy.com/public_html/do_it.php	Wed May 11 05:49:51 2011 +0000
@@ -10,7 +10,7 @@
 $proto = array_shift($pall);
 $host = array_shift($pall);
 $hostparts = explode('.', $host);
-if (ip2long(long2ip($host))===$host) {
+if (long2ip(ip2long($host))===$host) {
  if ($hostparts[0]!='1') die('Bad IP');
 } elseif (!preg_match("/ano|ntwrk$/",array_pop($hostparts))) die('Bad host');
 $path = implode('/', $pall);