mirror of
https://gitlab.torproject.org/tpo/anti-censorship/pluggable-transports/snowflake.git
synced 2025-10-14 05:11:19 -04:00
Avoid performing two NAT probe tests at startup
After the initial NAT probe test, a full interval before starting the recurring NAT retests.
This commit is contained in:
parent
4e7f897527
commit
6310ca4381
1 changed files with 1 additions and 1 deletions
|
@ -574,7 +574,7 @@ func (sf *SnowflakeProxy) Start() error {
|
||||||
}
|
}
|
||||||
|
|
||||||
if sf.NATTypeMeasurementInterval != 0 {
|
if sf.NATTypeMeasurementInterval != 0 {
|
||||||
NatRetestTask.Start()
|
NatRetestTask.WaitThenStart()
|
||||||
defer NatRetestTask.Close()
|
defer NatRetestTask.Close()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue