mirror of
https://gitlab.torproject.org/tpo/anti-censorship/pluggable-transports/snowflake.git
synced 2025-10-13 20:11:19 -04:00
Add proxy type to stats exported by broker
This commit is contained in:
parent
8ab81fc6cd
commit
981abffbd9
3 changed files with 111 additions and 22 deletions
|
@ -173,7 +173,7 @@ func proxyPolls(ctx *BrokerContext, w http.ResponseWriter, r *http.Request) {
|
|||
if err != nil {
|
||||
log.Println("Error processing proxy IP: ", err.Error())
|
||||
} else {
|
||||
ctx.metrics.UpdateCountryStats(remoteIP)
|
||||
ctx.metrics.UpdateCountryStats(remoteIP, ptype)
|
||||
}
|
||||
|
||||
// Wait for a client to avail an offer to the snowflake, or timeout if nil.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue