Authenticated HTTP proxy that rewrites HTTPS to plain HTTP
Go to file
Wolfgang Müller c29417f726 Properly handle AF_INET6 requests
Socket addresses in the Python socket interface are represented in
multiple different ways according to the socket family. Both AF_INET and
AF_INET6 families use tuples with the host as the first element.

Currently we extract the host from the first element of such a tuple,
and ignore the other element. Since AF_INET6 has four elements, this
will fail with a ValueError.

To support AF_INET6 requests, make sure to store whatever is left of the
tuple in a list instead.
2021-10-15 12:41:04 +03:00
CC0 First commit 2021-10-14 23:43:21 +03:00
untls_proxy.py Properly handle AF_INET6 requests 2021-10-15 12:41:04 +03:00
users-example First commit 2021-10-14 23:43:21 +03:00