diff options
author | Joey Hess <joey@kitenet.net> | 2012-08-25 10:43:24 -0400 |
---|---|---|
committer | Joey Hess <joey@kitenet.net> | 2012-08-25 10:43:24 -0400 |
commit | a3c1768e109f5f125ca3b9f4e8e2adbd4c2e5abc (patch) | |
tree | d02fd1e9c1e0ec98e972ea3a016145976167c2e8 /IkiWiki/Plugin | |
parent | 4d2f4009cbc29882de1e32956f300d0884f56b0c (diff) | |
download | ikiwiki-a3c1768e109f5f125ca3b9f4e8e2adbd4c2e5abc.tar ikiwiki-a3c1768e109f5f125ca3b9f4e8e2adbd4c2e5abc.tar.gz |
comments: Remove ipv6 address specific code.
Diffstat (limited to 'IkiWiki/Plugin')
-rw-r--r-- | IkiWiki/Plugin/comments.pm | 5 |
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}) { |