Same IP, different PORT.
-
The plug-in is locking out the same IP address multiple times, each with a different port.
I had to hack the get_address() method to filter out the port.
public function get_address( $type_name = '' ) { if ( !empty( $_SERVER['HTTP_X_FORWARDED_FOR'] ) ) $ip = $_SERVER['HTTP_X_FORWARDED_FOR']; elseif ( !empty( $_SERVER['HTTP_X_SUCURI_CLIENTIP'] ) ) $ip = $_SERVER['HTTP_X_SUCURI_CLIENTIP']; elseif ( isset( $_SERVER['REMOTE_ADDR'] ) ) $ip = $_SERVER['REMOTE_ADDR']; else return ''; $ip = preg_replace('/([^:]+):\d+/', '$1', $ip); return $ip; }
Please consider implementing a similar solution into this plug-in, so that I don’t have to hack.
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Same IP, different PORT.’ is closed to new replies.