[tor-bugs] #12125 [Pluggable transport]: Proposal 232 (TOR_PT_PROXY) support for goptlib
Tor Bug Tracker & Wiki
blackhole at torproject.org
Sun May 25 07:15:48 UTC 2014
#12125: Proposal 232 (TOR_PT_PROXY) support for goptlib
-------------------------------------+---------------------
Reporter: dcf | Owner: dcf
Type: project | Status: new
Priority: normal | Milestone:
Component: Pluggable transport | Version:
Resolution: | Keywords: goptlib
Actual Points: | Parent ID:
Points: |
-------------------------------------+---------------------
Comment (by dcf):
Here's my proposed interface.
We add two new functions:
{{{
func ProxyError(msg string) error {
return doError("PROXY-ERROR", msg)
}
func ProxyDone() {
line("PROXY", "DONE")
}
}}}
We add one new field to ClientInfo:
{{{
ProxyURL *url.URL
}}}
ClientSetup fills in ProxyURL. It only parses the URL, and doesn't check,
for example, that the scheme is that of a known proxy protocol. Leave that
to the application; the application has to know what proxy types it
supports anyway.
I have some prototypes of this API with tests in the meek-client commit at
https://gitweb.torproject.org/pluggable-
transports/meek.git/commitdiff/81206ad1ece0aa33d598ac2d265ef636a278e91d.
--
Ticket URL: <https://trac.torproject.org/projects/tor/ticket/12125#comment:1>
Tor Bug Tracker & Wiki <https://trac.torproject.org/>
The Tor Project: anonymity online
More information about the tor-bugs
mailing list