Skip to content

Commit

Permalink
Merge branch 'master' into staging-client
Browse files Browse the repository at this point in the history
  • Loading branch information
rod-hynes committed Nov 11, 2024
2 parents fafea9e + fe50266 commit 12c6907
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion psiphon/common/inproxy/api.go
Original file line number Diff line number Diff line change
Expand Up @@ -833,7 +833,7 @@ func (report *BrokerServerReport) ValidateAndGetLogFields(
return nil, errors.Tracef("invalid proxy portmapping types: %v", report.ProxyPortMappingTypes)
}

logFields := common.LogFields{}
logFields = common.LogFields{}

logFields["proxy_nat_type"] = report.ProxyNATType
logFields["proxy_port_mapping_types"] = report.ProxyPortMappingTypes
Expand Down
8 changes: 4 additions & 4 deletions psiphon/tlsDialer.go
Original file line number Diff line number Diff line change
Expand Up @@ -793,7 +793,7 @@ func SelectTLSProfile(
frontingProviderID string,
p parameters.ParametersAccessor) (tlsProfile, tlsVersion string, randomizedTLSProfileSeed *prng.Seed, err error) {

for {
for i := 0; i < 1000; i++ {
tlsProfile, tlsVersion, randomizedTLSProfileSeed, err = selectTLSProfile(requireTLS12SessionTickets, isFronted, frontingProviderID, p)
if err != nil {
return "", "", nil, errors.Trace(err)
Expand All @@ -809,6 +809,7 @@ func SelectTLSProfile(

return
}
return "", "", nil, errors.TraceNew("Failed to select a TLS profile")
}

// selectTLSProfile is a helper that picks and returns a TLS profile at random
Expand Down Expand Up @@ -1011,14 +1012,13 @@ func getClientHelloVersion(

switch utlsClientHelloID {

// TODO! missing: iOS-13, iOS-14

case utls.HelloIOS_11_1, utls.HelloIOS_12_1,
utls.HelloChrome_58, utls.HelloChrome_62,
utls.HelloFirefox_55, utls.HelloFirefox_56:
return protocol.TLS_VERSION_12, nil

case utls.HelloChrome_70, utls.HelloChrome_72,
case utls.HelloIOS_13, utls.HelloIOS_14,
utls.HelloChrome_70, utls.HelloChrome_72,
utls.HelloChrome_83, utls.HelloChrome_96,
utls.HelloChrome_102, utls.HelloChrome_120,
utls.HelloChrome_120_PQ, utls.HelloChrome_106_Shuffle,
Expand Down

0 comments on commit 12c6907

Please sign in to comment.