Permalink
Browse files

Changed one call to gethostbyaddr() to use numeric

ip instead. Such information is only stored in DB
(page->author) and not critical at all. Suggested
by Derry in http://moodle.org/mod/forum/discuss.php?d=32171
because it was causing important delays when clients
weren't DNS-registered.

Merged from MOODLE_15_STABLE
  • Loading branch information...
stronk7
stronk7 committed Nov 1, 2005
1 parent ad822b3 commit 713efedc318296fdda6cdea95270e8980242021a
Showing with 1 addition and 1 deletion.
  1. +1 −1 mod/wiki/ewiki/ewiki.php
View
@@ -2996,7 +2996,7 @@ function ewiki_author($defstr="") {
$author = @$GLOBALS["ewiki_author"];
($ip = getremoteaddr()) or ($ip = "127.0.0.0");
($port = $_SERVER["REMOTE_PORT"]) or ($port = "null");
- $hostname = gethostbyaddr($ip);
+ $hostname = $ip;
$remote = (($ip != $hostname) ? $hostname . " " : "")
. $ip . ":" . $port;

0 comments on commit 713efed

Please sign in to comment.