projects
/
brisk.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
update realip log
[brisk.git]
/
web
/
Obj
/
provider_proxy.phh
diff --git
a/web/Obj/provider_proxy.phh
b/web/Obj/provider_proxy.phh
index
eb4b12e
..
b1a4d95
100644
(file)
--- a/
web/Obj/provider_proxy.phh
+++ b/
web/Obj/provider_proxy.phh
@@
-82,11
+82,13
@@
class ProviderProxy
function realip($header, $ip)
{
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) {
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])) {
if ($pp_item->ipclass->check($ip)) {
if (isset($header[$pp_item->headitem])) {
- fprintf(STDERR, "
M
atch public proxy [%s][%s]\n", $pp_name, $header[$pp_item->headitem]);
+ fprintf(STDERR, "
PP: m
atch public proxy [%s][%s]\n", $pp_name, $header[$pp_item->headitem]);
return ($header[$pp_item->headitem]);
}
}
return ($header[$pp_item->headitem]);
}
}