mirror of
https://gitlab.torproject.org/tpo/anti-censorship/pluggable-transports/snowflake.git
synced 2025-10-13 20:11:19 -04:00
localize ptInfo and iceServers vars, separate copy-paste helpers, move some logging
to more sensible locations
This commit is contained in:
parent
b6f15a8d5c
commit
fedb124313
4 changed files with 41 additions and 38 deletions
|
@ -46,9 +46,11 @@ func NewBrokerChannel(broker string, front string, transport http.RoundTripper)
|
|||
if nil != err {
|
||||
return nil
|
||||
}
|
||||
log.Println("Rendezvous using Broker at:", broker)
|
||||
bc := new(BrokerChannel)
|
||||
bc.url = targetURL
|
||||
if "" != front { // Optional front domain.
|
||||
log.Println("Domain fronting using:", front)
|
||||
bc.Host = bc.url.Host
|
||||
bc.url.Host = front
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue