diff options
| author | Damian Johnson <atagar@torproject.org> | 2015-02-21 18:18:22 -0800 |
|---|---|---|
| committer | Damian Johnson <atagar@torproject.org> | 2015-02-21 18:18:22 -0800 |
| commit | 9d869c4f6e2fe9056f95b693092bb6d11a8a5b02 (patch) | |
| tree | 5e68aed5b9fd7a46440e831ca8cfa277832f20e3 | |
| parent | 867ddbe86cb278467deeb65938581f9b819af555 (diff) | |
Use PROXYTYPE_SOCKS5_HOSTNAME for tutorial example
Michael points out that we leaked our DNS requests in this example. By using
PROXYTYPE_SOCKS5_HOSTNAME which was added to pycurl v7.19.5.1 on 2015-01-06
uses the socks proxy for them...
https://github.com/pycurl/pycurl/issues/206
| -rw-r--r-- | docs/tutorials/to_russia_with_love.rst | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/docs/tutorials/to_russia_with_love.rst b/docs/tutorials/to_russia_with_love.rst index 33c04d39..75f9735a 100644 --- a/docs/tutorials/to_russia_with_love.rst +++ b/docs/tutorials/to_russia_with_love.rst @@ -107,7 +107,7 @@ Besides SocksiPy, you can also use `PycURL <http://pycurl.sourceforge.net/>`_ to query.setopt(pycurl.URL, url) query.setopt(pycurl.PROXY, 'localhost') query.setopt(pycurl.PROXYPORT, SOCKS_PORT) - query.setopt(pycurl.PROXYTYPE, pycurl.PROXYTYPE_SOCKS5) + query.setopt(pycurl.PROXYTYPE, pycurl.PROXYTYPE_SOCKS5_HOSTNAME) query.setopt(pycurl.WRITEFUNCTION, output.write) try: |
