public void updateAnonymity ( ) throws IOException { ProxyBinResponse response = GhostMeHelper . getMyInformation ( this . getJavaNetProxy ( ) ) ; if ( ! response . getOrigin ( ) . equalsIgnoreCase ( this . getIp ( ) ) ) { anonymous = false ; return ; } if ( ! response . getHeaders ( ) . get ( "X-Forwarded-For" ) . equalsIgnoreCase ( this . getIp ( ) ) ) { anonymous = false ; return ; } if ( ! response . getHeaders ( ) . get ( "X-Real-Ip" ) . equalsIgnoreCase ( this . getIp ( ) ) ) { anonymous = false ; return ; } anonymous = true ; }
Update the anonymous status of the proxy