Add utls imitate setting to snowflake client

This commit is contained in:
Shelikhoo 2022-02-10 17:04:42 +00:00
parent c1c3596cf8
commit 9af0ad119b
No known key found for this signature in database
GPG key ID: C4D5E79D22B25316
3 changed files with 28 additions and 4 deletions

View file

@ -126,6 +126,7 @@ func main() {
frontDomain := flag.String("front", "", "front domain")
ampCacheURL := flag.String("ampcache", "", "URL of AMP cache to use as a proxy for signaling")
logFilename := flag.String("log", "", "name of log file")
utlsClientHelloID := flag.String("utls-imitate", "", "type of TLS client to imitate with utls")
logToStateDir := flag.Bool("log-to-state-dir", false, "resolve the log file relative to tor's pt state dir")
keepLocalAddresses := flag.Bool("keep-local-addresses", false, "keep local LAN address ICE candidates")
unsafeLogging := flag.Bool("unsafe-logging", false, "prevent logs from being scrubbed")
@ -178,6 +179,7 @@ func main() {
ICEAddresses: iceAddresses,
KeepLocalAddresses: *keepLocalAddresses || *oldKeepLocalAddresses,
Max: *max,
UTlsClientID: *utlsClientHelloID,
}
// Begin goptlib client process.