Shelikhoo
f12cfe6a9f
Add proxy event logger state propagate
2022-01-25 13:03:18 +00:00
Shelikhoo
e4305a4d2b
Add EventOnProxyConnectionOver Reporting
2022-01-25 13:03:18 +00:00
Shelikhoo
0c62d806a4
Represent NATTypeMeasurementInterval in time.Duration
...
Adopted the change in according to the recommendation from
https://gitlab.torproject.org/tpo/anti-censorship/pluggable-transports/snowflake/-/merge_requests/62#note_2761566
2021-11-16 19:25:27 +00:00
Shelikhoo
59af9927a5
Refactor state transfer logic to simplify it
...
Adopted the change in according to the recommendation from
https://gitlab.torproject.org/tpo/anti-censorship/pluggable-transports/snowflake/-/merge_requests/62#note_2760514
2021-11-12 10:49:32 +00:00
Shelikhoo
2547883cf9
Extract function getCurrentNATType()
...
Adopted the change in according to the recommendation from
https://gitlab.torproject.org/tpo/anti-censorship/pluggable-transports/snowflake/-/merge_requests/62#note_2759900
2021-11-12 10:49:32 +00:00
Shelikhoo
a6a53ff8ce
Add NAT Type test periodic task
2021-11-12 10:49:30 +00:00
Shelikhoo
ac97ce7136
Add NAT Type measurement command line flag
...
It is important to include unit in flag name to prevent user from making mistake.
2021-11-12 10:48:15 +00:00
Shelikhoo
04bc471a63
Support recurring NAT Type measurement
...
currentNATType will from now on be guarded by currentNATTypeAccess for any access.
NAT Type update rule is flattened into state transfer lookup table to assist reading.
2021-11-12 10:48:14 +00:00
Cecylia Bocovich
ead5a960d7
Bump snowflake library imports and go.mod to v2
2021-11-11 10:14:49 -05:00
Cecylia Bocovich
0a2598a1e8
Export ability to change the URL of NAT probe
2021-10-28 10:05:01 -04:00
Cecylia Bocovich
3caa83d84d
Modify handling of misconfigurations and defaults
2021-10-28 10:05:01 -04:00
Cecylia Bocovich
0e8d41ba4b
Update comments for exported items
2021-10-28 10:05:01 -04:00
Cecylia Bocovich
84e8a183e5
Comment package and minor changes exports
2021-10-26 15:49:46 -04:00
Cecylia Bocovich
b2edf948e2
Remove BytesLoggers from exported functions
2021-10-26 14:52:17 -04:00
idk
50e4f4fd61
Turn the proxy code into a library
...
Allow other go programs to easily import the snowflake proxy library and
start/stop a snowflake proxy.
2021-10-26 14:15:44 -04:00