2015-08-03, 21:52
(2015-01-01, 14:05)Wintemrute Wrote: I hacked around Pandoki and added SNI support for it.
Background:
I got 'Network timeouts' when Pandoki tries to connect via HTTPS and followed it back to my proxy which needs the SNI extension to distinguish the target hosts. Most browsers and other tools use it automatically (Thats why many other clients work as long it's not implemented in Python 2)
For the SNI extension to work I had to add urllib3 support to Pandoki managed thru the SNI Support setting. (Python 2.7 itself cannot handle SNI)
Also you have to add four python modules: urllib3, pyOpenSSL, ndg-httpsclient, pyasn1
On Ubuntu:
or with pip:Code:sudo apt-get install python-urllib3 python-openssl python-ndg-httpsclient python-pyasn1
Code:pip install urllib3 pyopenssl ndg-httpsclient pyasn1
Here is my patch:
pandoki.diff
I hope I didn't break to much with this hack.
Happy New Year!
Update:
- Had some logic errors in the patch... (true != True) - Updated the patch
I got this working on my Ubuntu Version, i installed via pip on windows but still not working
is it possible to enable SNI under Windows and Android??