forcediphttpsadapter
forcediphttpsadapter copied to clipboard
Support proxies
The module works fine, but the proxies parameter is ignored and does not use proxies.
session = requests.Session()
session.mount(protocol_domain, ForcedIPHTTPSAdapter(dest_ip=ip))
r = session.get(address, verify=False, proxies=proxies)
Thanks for reporting this! Sure, I'll look into it as soon as I can.
Would this even work? I'm not sure a proxy will take anything but a URL, which if using SNI you'd have to leave intact... I don't know another way to supply the destination IP, though.