feat: expose pollInterval in CLI

Closes https://gitlab.torproject.org/tpo/anti-censorship/pluggable-transports/snowflake/-/issues/40373
This commit is contained in:
WofWca 2024-08-22 11:18:42 +04:00 committed by Cecylia Bocovich
parent 8f429666a8
commit f4db64612c
No known key found for this signature in database
GPG key ID: 009DE379FD9B7B90
4 changed files with 27 additions and 12 deletions

View file

@ -35,6 +35,8 @@ Usage of ./proxy:
a pattern to specify allowed hostname pattern for relay URL. (default "snowflake.torproject.net$")
-broker string
broker URL (default "https://snowflake-broker.torproject.net/")
-poll-interval duration
how often to ask the broker for a new client. Keep in mind that asking for a client will not always result in getting one. Minumum value is 2s. Valid time units are "ms", "s", "m", "h". (default 5s)
-capacity uint
maximum concurrent clients (default is to accept an unlimited number of clients)
-disableStatsLogger