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

IPv6 #11

Closed
MatthisB opened this issue Sep 17, 2020 · 1 comment · Fixed by #12
Closed

IPv6 #11

MatthisB opened this issue Sep 17, 2020 · 1 comment · Fixed by #12

Comments

@MatthisB
Copy link

Returning tuple from socket.getaddrinfo() too long using IPv6.

Working for IPv4 / IPv6:

        self.address_family, _, _, _, addrinfo = socket.getaddrinfo(
                host=args.host,
                port=None,
                flags=socket.AI_ADDRCONFIG
            )[0]
        
        self.ip_address = addrinfo[0]
@grongor grongor mentioned this issue Feb 8, 2021
@grongor
Copy link
Owner

grongor commented Feb 8, 2021

Sorry for the delay, and thank you for the report and the solution :) It's fixed now via #12

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

Successfully merging a pull request may close this issue.

2 participants