Enable tls websockets on the server

* Code lifted from meek-server
This commit is contained in:
Arlo Breault 2016-12-19 14:57:46 -08:00
parent 7e9066a29d
commit 5cd2a226aa
4 changed files with 84 additions and 12 deletions

View file

@ -159,7 +159,7 @@ func clientOffers(ctx *BrokerContext, w http.ResponseWriter, r *http.Request) {
return
}
// Otherwise, find the most available snowflake proxy, and pass the offer to it.
// Delete must be deferred in order to correctly process answer request later.
// Delete must be deferred in order to correctly process answer request later.
snowflake := heap.Pop(ctx.snowflakes).(*Snowflake)
defer delete(ctx.idToSnowflake, snowflake.id)
snowflake.offerChannel <- offer