Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Proxy Connection vars not defined #2

Open
USSyorktown10 opened this issue May 9, 2024 · 1 comment
Open

Proxy Connection vars not defined #2

USSyorktown10 opened this issue May 9, 2024 · 1 comment

Comments

@USSyorktown10
Copy link

    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

@quantumbagel
Copy link
Owner

Hi,

This code is broken because of other changes I've made. You can remove the verify ip and verify port if statements and the code should work. I will give better support on the finiteCraft code, which has a much better algorithm.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants