mirror of
https://gitlab.torproject.org/tpo/anti-censorship/pluggable-transports/snowflake.git
synced 2025-10-13 20:11:19 -04:00
Broker /amp/client route (AMP cache client registration).
This commit is contained in:
parent
5adb994028
commit
e833119bef
3 changed files with 154 additions and 2 deletions
|
@ -218,6 +218,8 @@ func main() {
|
|||
http.Handle("/metrics", MetricsHandler{metricsFilename, metricsHandler})
|
||||
http.Handle("/prometheus", promhttp.HandlerFor(ctx.metrics.promMetrics.registry, promhttp.HandlerOpts{}))
|
||||
|
||||
http.Handle("/amp/client/", SnowflakeHandler{i, ampClientOffers})
|
||||
|
||||
server := http.Server{
|
||||
Addr: addr,
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue