aboutsummaryrefslogtreecommitdiff
path: root/IkiWiki/Plugin
diff options
context:
space:
mode:
authorJoey Hess <joey@kitenet.net>2012-08-25 10:43:24 -0400
committerJoey Hess <joey@kitenet.net>2012-08-25 10:43:24 -0400
commita3c1768e109f5f125ca3b9f4e8e2adbd4c2e5abc (patch)
treed02fd1e9c1e0ec98e972ea3a016145976167c2e8 /IkiWiki/Plugin
parent4d2f4009cbc29882de1e32956f300d0884f56b0c (diff)
downloadikiwiki-a3c1768e109f5f125ca3b9f4e8e2adbd4c2e5abc.tar
ikiwiki-a3c1768e109f5f125ca3b9f4e8e2adbd4c2e5abc.tar.gz
comments: Remove ipv6 address specific code.
Diffstat (limited to 'IkiWiki/Plugin')
-rw-r--r--IkiWiki/Plugin/comments.pm5
1 files changed, 1 insertions, 4 deletions
diff --git a/IkiWiki/Plugin/comments.pm b/IkiWiki/Plugin/comments.pm
index 285013e49..c00bf5275 100644
--- a/IkiWiki/Plugin/comments.pm
+++ b/IkiWiki/Plugin/comments.pm
@@ -443,10 +443,7 @@ sub editcomment ($$) {
$content .= " nickname=\"$nickname\"\n";
}
elsif (defined $session->remote_addr()) {
- my $ip = $session->remote_addr();
- if ($ip =~ m/^([.0-9]+)$/) {
- $content .= " ip=\"$1\"\n";
- }
+ $content .= " ip=\"".$session->remote_addr()."\"\n";
}
if ($config{comments_allowauthor}) {