X-Git-Url: https://mop.ddnsfree.com/gitweb/?a=blobdiff_plain;ds=sidebyside;f=web%2FObj%2Fprovider_proxy.phh;h=b1a4d954a1c54554cc926f46731d6374937883eb;hb=c9cbae97b192a003007a9d7f655473c266ca49d8;hp=eb4b12e933eb704b2b8f0b14bee4d6a8e042afbe;hpb=cd309a6ddce26fb78a25b45105cde5248ded3cf6;p=brisk.git diff --git a/web/Obj/provider_proxy.phh b/web/Obj/provider_proxy.phh index eb4b12e..b1a4d95 100644 --- a/web/Obj/provider_proxy.phh +++ b/web/Obj/provider_proxy.phh @@ -82,11 +82,13 @@ class ProviderProxy function realip($header, $ip) { + fprintf(STDERR, "PP realip: [%d]\n", count($this->pp)); if ($this->pp != NULL) { foreach ($this->pp as $pp_name => $pp_item) { + // fprintf(STDERR, "PP loop: [%s][%s]\n", $pp_name, $ip); if ($pp_item->ipclass->check($ip)) { if (isset($header[$pp_item->headitem])) { - fprintf(STDERR, "Match public proxy [%s][%s]\n", $pp_name, $header[$pp_item->headitem]); + fprintf(STDERR, "PP: match public proxy [%s][%s]\n", $pp_name, $header[$pp_item->headitem]); return ($header[$pp_item->headitem]); } }