mirror of
https://gitlab.torproject.org/tpo/anti-censorship/pluggable-transports/snowflake.git
synced 2025-10-14 05:11:19 -04:00
parent
099f4127ea
commit
e3d376ca43
1 changed files with 4 additions and 1 deletions
|
@ -485,7 +485,10 @@ func main() {
|
||||||
checkNATType(config, defaultProbeURL)
|
checkNATType(config, defaultProbeURL)
|
||||||
log.Printf("NAT type: %s", currentNATType)
|
log.Printf("NAT type: %s", currentNATType)
|
||||||
|
|
||||||
for {
|
ticker := time.NewTicker(pollInterval)
|
||||||
|
defer ticker.Stop()
|
||||||
|
|
||||||
|
for ; true; <-ticker.C {
|
||||||
tokens.get()
|
tokens.get()
|
||||||
sessionID := genSessionID()
|
sessionID := genSessionID()
|
||||||
runSession(sessionID)
|
runSession(sessionID)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue