Currently using something looking like that: http://stackoverflow.com/questions/29995133/python-requests-use-navigate-site-by-servers-ip
Of course that's not enough for HTTPS, it's even weird it worked until now.
Any idea on how to make it send the correct TLS SNI?
@edavies yeah I guess it would be enough just to check IPv6