[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
Re: [tor-bugs] #12120 [meek]: Enable Firefox meek-http-helper to use an upstream proxy
#12120: Enable Firefox meek-http-helper to use an upstream proxy
-----------------------------+--------------------------
Reporter: dcf | Owner: dcf
Type: enhancement | Status: needs_review
Priority: normal | Milestone:
Component: meek | Version:
Resolution: | Keywords:
Actual Points: | Parent ID:
Points: |
-----------------------------+--------------------------
Changes (by dcf):
* status: new => needs_review
Comment:
I have a branch implementing
#8402/[https://gitweb.torproject.org/torspec.git/blob/23b94e24f3089ba1a4bcafcc5c92c3753df0f17d:/proposals/232
-pluggable-transports-through-proxy.txt proposal 232] in meek-client.
* https://gitweb.torproject.org/pluggable-
transports/meek.git/shortlog/refs/heads/proxy
When run with the browser extension helper (--helper option), all the
proxy types are supported: http, socks5, and socks4a. When run without the
helper, only http is supported.
Here's a cumulative diff of all changes as of the posting of this comment:
* https://gitweb.torproject.org/pluggable-
transports/meek.git/commitdiff/0df40fee0a2822001797b2500fc6869ea2944383?hp=38e6ebed87aa4a8281c1f2d6ad931a2d911797ec
The code in the Firefox browser extension is pretty simple. We just add a
new `proxy` key to the JSON blob passed to the extension, and set up the
right kind of [https://developer.mozilla.org/en-
US/docs/XPCOM_Interface_Reference/nsIProxyInfo nsIProxyInfo].
* https://gitweb.torproject.org/pluggable-
transports/meek.git/blob/0df40fee0a2822001797b2500fc6869ea2944383:/firefox/components/main.js#l134
In meek-client, we add the new JSON `proxy` element when using the helper:
* https://gitweb.torproject.org/pluggable-
transports/meek.git/blob/0df40fee0a2822001797b2500fc6869ea2944383:/meek-
client/helper.go#l35
See also #12125 for the migration of the TOR_PT_PROXY code to goptlib. It
would move the code in proxy.go and proxy_test.go.
--
Ticket URL: <https://trac.torproject.org/projects/tor/ticket/12120#comment:2>
Tor Bug Tracker & Wiki <https://trac.torproject.org/>
The Tor Project: anonymity online
_______________________________________________
tor-bugs mailing list
tor-bugs@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-bugs