From 71deda82fe42fd6a438c4b98fb53ecb93b82aff0 Mon Sep 17 00:00:00 2001 From: stronk7 Date: Tue, 1 Nov 2005 17:45:26 +0000 Subject: [PATCH] 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. --- mod/wiki/ewiki/ewiki.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mod/wiki/ewiki/ewiki.php b/mod/wiki/ewiki/ewiki.php index 3a7c3f30b4f..62e347b407e 100644 --- a/mod/wiki/ewiki/ewiki.php +++ b/mod/wiki/ewiki/ewiki.php @@ -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;