ircsnapshot
ircsnapshot copied to clipboard
IPv6 Support
(<class 'socket.gaierror'>, gaierror(-5, 'No address associated with hostname'), <traceback object at 0x17f9ab8>)
no v6 support :(
I have some prospective code for this, just need to test.
Somewhere else I saw you suggest use of command line args to enable v6. Why not just socket.getaddrinfo()
?
The server address being parsed on the command line right now is host[:port] and the parsing for that is very simple. Just need to separate the host and port into separate arguments so its still easy to parse. That is in the prospective code.
One issue with getaddrinfo though is that if a hostname is supplied, it will try to resolve the hostname. I'll need to implement a means of explicitly resolving DNS over the proxy to avoid leaking if a proxy is being used.