Re: finding the closest mirror
| From: | Jim Winstead | Date: | Sun, 26 May 2002 01:45:00 +0000 |
| Subject: | Re: finding the closest mirror | ||
| References: | 1 2 3 4 5 6 | Groups: | php.mirrors |
| Request: | Send a blank email to php-mirrors+get-10465@lists.php.net to get a copy of this message | ||
On Sun, May 26, 2002 at 03:16:26AM +0200, Trond Arve Nordheim wrote:
> On Sat, May 25, 2002 at 06:03:54PM -0700, Jim Winstead wrote:
> > oops, i forgot to save the file i was editing before walking
> > away from my computer. give it another try. :)
>
> ip: 172.16.0.10
> country code: TW
>
> Heh, maybe you should check the the HTTP_X_FORWARDED_FOR-variable if
> REMOTE_ADDR is 172.16.* (or is that 172.16.0.* ?), 10.* or 192.168.* ?
> Most proxys set that variable correct.. at least check if it exists, and
> if it is a valid IP address ?
i guess it has to do with the order in which multiple forwards show up.
the page will now print out the x-forwarded-for header and will try to
use the last address from that list. (if this doesn't work, we'll have
to get even more clever and try to pick out the routable address from
the list of addresses. :)
jim