Skip to content

Proxy Connection vars not defined #2

@USSyorktown10

Description

@USSyorktown10
    if protocol not in PROTOCOLS:  # Ensure protocol validity
        raise InvalidProxyProtocol(f"The protocol {protocol} isn't valid! Expected one of: {' ,'.join(PROTOCOLS)}")

    if ip is not None or port is not None:
        self.local = False  # The proxy is not local
        if not verify_ip(ip):  # Ensure IP validity
            raise InvalidProxyIP(f"The provided IP address ({ip}) isn't valid!")

        if not verify_port(port):  # Ensure port validity
            raise InvalidProxyPort(f"The provided port ({port}) isn't valid!")
    else:
        self.local = True  # The proxy is local

The invalid proxy ip and verify ip are not defined

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions