[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[liquidwar-user] Re: liquid war server registering problem

From: Christian Mauduit
Subject: [liquidwar-user] Re: liquid war server registering problem
Date: Sun, 29 Dec 2002 13:58:13 +0100
User-agent: Mutt/1.3.28i


On Sat, Dec 21, 2002 at 10:21:49PM -0000, Christopher Orr wrote:
> Hi there,
> In your metaserver PHP script, you use REMOTE_ADDR to fetch the server's IP
> address, but this incorrectly shows for those (like me) whose web traffic
> goes through a transparent proxy, REMOTE_ADDR returns the web proxy IP
> address.  This means I can't properly register my server on your site! :(
> PHP uses HTTP_X_FORWARDED_FOR to retrieve the true IP instead of the
> proxy's.
mmm, I see...
> As far as I can see, you probably just need to alter
> metaserver_register/write, for example:
> $address = db_quote($ip, METASERVER_SIZE_ADDRESS);
> I think this should fix it in most cases, though I'm sure you can easily
> work out any problems with this! :)
OK, well, I applied the changes you suggested on the CVS source tree,
and also put the files "in production" on, so you might
test it by now. Please tell me if it works better, and thanks for the

Oh, and BTW, I'm online by now, and for a bunch of hours, if anyone
wants to play, I'm ready!

Have a nice day,


PS: I send a copy of this reply to the LW mailing list, just to inform

Christian Mauduit <address@hidden>     __/\__ ___
                                        \~/ ~/(`_ \   ___                   /_o _\   \ \_/ _ \_            \/      \___/ \__)

reply via email to

[Prev in Thread] Current Thread [Next in Thread]