localize ptInfo and iceServers vars, separate copy-paste helpers, move some logging

to more sensible locations
This commit is contained in:
Serene Han 2016-06-12 11:49:32 -07:00
parent b6f15a8d5c
commit fedb124313
4 changed files with 41 additions and 38 deletions

View file

@ -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
}