Force absolute lookup. Props tanuki. fixes #2237

git-svn-id: http://svn.automattic.com/wordpress/trunk@3433 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
ryan 2006-01-13 22:40:22 +00:00
parent 3addf81bd1
commit 58029f7249
1 changed files with 1 additions and 1 deletions

View File

@ -679,7 +679,7 @@ function wp_blacklist_check($author, $email, $url, $comment, $user_ip, $user_age
function wp_proxy_check($ipnum) {
if ( get_option('open_proxy_check') && isset($ipnum) ) {
$rev_ip = implode( '.', array_reverse( explode( '.', $ipnum ) ) );
$lookup = $rev_ip . '.opm.blitzed.org';
$lookup = $rev_ip . '.opm.blitzed.org.';
if ( $lookup != gethostbyname( $lookup ) )
return true;
}