- if ($pp_item->match($ip)) {
- if (isset($headers[$pp_item->headitem])) {
- fprintf(STDERR, "Match public proxy [%s]\n", $pp_name);
- return ($headers[$pp_item->headitem]);
+ 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]);
+ return ($header[$pp_item->headitem]);