Skip to content

When on captive portal.. manage getting error for extrenal ip #5

@Th4nat0s

Description

@Th4nat0s
                WARNING  Unable to determine external IP with provider https://ipinfo.io/ip: HTTPSConnectionPool(host='ipinfo.io', port=443): Max retries exceeded    netutils.py:58
                         with url: /ip (Caused by SSLError(SSLCertVerificationError(1, "[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: Hostname                        
                         mismatch, certificate is not valid for 'ipinfo.io'. (_ssl.c:1000)")))                                                                                      

Traceback (most recent call last):
File "/home/thanat0s/Code/Plum-Agent/src/agent.py", line 215, in
CONFIG = setup(CONFIG, args) # Update config
^^^^^^^^^^^^^^^^^^^
File "/home/thanat0s/Code/Plum-Agent/src/utils/setup.py", line 98, in setup
cfg["curr_ip"] = get_ext_ip()
^^^^^^^^^^^^
File "/home/thanat0s/Code/Plum-Agent/src/utils/netutils.py", line 41, in get_ext_ip
ip_obj = ipaddress.ip_address(ip)
^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.12/ipaddress.py", line 54, in ip_address
raise ValueError(f'{address!r} does not appear to be an IPv4 or IPv6 address')
ValueError: '\n\t\n\t\t<title>Forbidden access</title>\n\t\n\t\n\t\t

\n\t\t\t

Forbidden access

\n\t\t\t

Your current web browser cannot access this page.

\n\t\t
\n\t\n' does not appear to be an IPv4 or IPv6 address

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions