Skip to content

incorrectly report 'Transparent' #7

Description

@gobbedy

Great tool, thank you!

Recently, I've often been getting a timeout from https://api.ipify.org/ -- the proxy-checker incorrectly reports the anonymity as Transparent when that is the case. From the send_query code:

        try:
            c.perform()
        except Exception as e:
            # print(e)
            return False

        # Return False if the status is not 200
        if c.getinfo(c.HTTP_CODE) != 200:
            return False

Thus when https://api.ipify.org returns an error code, the returned value from send_query is False

        r = self.send_query(url='https://api.ipify.org/')

        if not r:
            return ""

This results in self.ip being set to an empty string, and later:

        if self.ip in r:
            return 'Transparent'

When an empty string is inevitably found in the response from the proxy judge, the anonymity is incorrectly set to transparent

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions