savetheinternet / Tinyboard

The better imageboard software
http://tinyboard.org
Other
367 stars 306 forks source link

User IP #200

Closed rotenbaron closed 8 years ago

rotenbaron commented 8 years ago

rDNS($ip) return all IP-addresses like 127.0.0.1 Cannot find the source of this problem.

goosehub commented 8 years ago

I'm not familiar with that function. What behavior are you expecting and how do you know it's not giving you it's intended behavior?

rotenbaron commented 8 years ago

Well, I believe that function should take IP-address from user hostname (as far as I understand those php-sources), but for now all ip-addresses it's create are 127.0.0.1

2016-01-14_17-12-47

rotenbaron commented 8 years ago

pages.php:788

if ($config['mod']['dns_lookup'])
    $args['hostname'] = rDNS($ip);
goosehub commented 8 years ago

Is this on your localhost, or on a live site with users?

rotenbaron commented 8 years ago

live site of course

goosehub commented 8 years ago

Unsure. I wish you luck finding a solution. Wish I could be of more help.

kpcyrd commented 8 years ago

Can you post details about your setup? You might be recording the IP of your reverse proxy.

rotenbaron commented 8 years ago

Yes, your reply totally gave me the idea. Turned out nginx on my server somehow became frozen and haven't received the new config.

Thank you for help!