Issue Details (XML | Word | Printable)

Key: MDL-9978
Type: Bug Bug
Status: Open Open
Priority: Minor Minor
Assignee: Martin Dougiamas
Reporter: Pieterjan Heyse
Votes: 1
Watchers: 0
Operations

Add/Edit UI Mockup to this issue
If you were logged in you would be able to see more operations.
Moodle

cleanremoteaddr notice in error log

Created: 29/May/07 09:50 PM   Updated: 29/May/07 09:50 PM
Return to search
Component/s: Events API
Affects Version/s: 1.8
Fix Version/s: None

Environment: LAMP , debian Etch

Database: MySQL
Participants: Martin Dougiamas and Pieterjan Heyse
Security Level: None
Affected Branches: MOODLE_18_STABLE


 Description  « Hide
When logging in into my moodle environment, I am getting :
NOTICE: cleanremoteaddr gives us something funny: 172.16.10.165, 172.16.10.165, 127.0.0.1, 84.195.113.230 had 2 matches, referer: http://moodle.daar.be/admin/settings.php
in my logs.

When dumping the $goodmatches array, I am getting these ip's : 127.0.0.1, 84.195.113.230. I was able to change these sources:
if (($bits[0] == 10)
6360 || ($bits[0] == 172 && $bits[1] >= 16 && $bits[1] <= 31)
6361 || ($bits[0] == 192 && $bits[1] == 168)
6362 || ($bits[0] == 169 && $bits[1] == 254))

to this:
if (($bits[0] == 10)
6360 || ($bits[0] == 172 && $bits[1] >= 16 && $bits[1] <= 31)
6361 || ($bits[0] == 192 && $bits[1] == 168)
6362 || ($bits[0] == 169 && $bits[1] == 254)
6363 || ($bits[0] == 127 ))

and it resolved the notice.



 All   Comments   Change History   Version Control      Sort Order: Ascending order - Click to sort in descending order
There are no comments yet on this issue.