mirror of
https://gitlab.torproject.org/tpo/anti-censorship/pluggable-transports/snowflake.git
synced 2025-10-13 20:11:19 -04:00
s/facilitator/broker/
This commit is contained in:
parent
0abb3bd856
commit
5c166f5015
5 changed files with 14 additions and 14 deletions
|
@ -10,7 +10,7 @@ $ torify ~/go_appengine/appcfg.py --no_cookies -A $YOUR_APP_ID update .
|
|||
*/
|
||||
package snowflake_broker
|
||||
|
||||
// host:port/basepath of the facilitator you want to register with
|
||||
// for example, fp-facilitator.org or example.com:12345/facilitator
|
||||
// host:port/basepath of the broker you want to register with
|
||||
// for example, fp-broker.org or example.com:12345/broker
|
||||
// https:// and /reg/ will be prepended and appended respectively.
|
||||
const SNOWFLAKE_FACILITATOR = ""
|
||||
const SNOWFLAKE_BROKER = ""
|
||||
|
|
|
@ -51,7 +51,7 @@ func regHandler(w http.ResponseWriter, r *http.Request) {
|
|||
|
||||
// TODO: Get browser snowflake to talkto this appengine instance
|
||||
// so it can reply with an answer, and not just the offer again :)
|
||||
// TODO: Real facilitator which matches clients and snowflake proxies.
|
||||
// TODO: Real broker which matches clients and snowflake proxies.
|
||||
w.Write(body)
|
||||
}
|
||||
|
||||
|
@ -59,7 +59,7 @@ func init() {
|
|||
http.HandleFunc("/robots.txt", robotsTxtHandler)
|
||||
http.HandleFunc("/ip", ipHandler)
|
||||
http.HandleFunc("/reg/", regHandler)
|
||||
// if SNOWFLAKE_FACILITATOR == "" {
|
||||
// panic("SNOWFLAKE_FACILITATOR empty; did you forget to edit config.go?")
|
||||
// if SNOWFLAKE_BROKER == "" {
|
||||
// panic("SNOWFLAKE_BROKER empty; did you forget to edit config.go?")
|
||||
// }
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue