mirror of
https://github.com/refraction-networking/utls.git
synced 2025-04-03 20:17:36 +03:00
Replace InsecureSkipServerNameVerify with InsecureServerNameToVerify (#161)
* Replace InsecureSkipServerNameVerify with InsecureServerNameToVerify * Replace "any" with "*"
This commit is contained in:
parent
d139a4a652
commit
a4ca4dd835
4 changed files with 45 additions and 44 deletions
|
@ -814,8 +814,10 @@ func TestCloneNonFuncFields(t *testing.T) {
|
|||
f.Set(reflect.ValueOf("b"))
|
||||
case "ClientAuth":
|
||||
f.Set(reflect.ValueOf(VerifyClientCertIfGiven))
|
||||
case "InsecureSkipVerify", "InsecureSkipServerNameVerify", "SessionTicketsDisabled", "DynamicRecordSizingDisabled", "PreferServerCipherSuites":
|
||||
case "InsecureSkipVerify", "SessionTicketsDisabled", "DynamicRecordSizingDisabled", "PreferServerCipherSuites":
|
||||
f.Set(reflect.ValueOf(true))
|
||||
case "InsecureServerNameToVerify":
|
||||
f.Set(reflect.ValueOf("c"))
|
||||
case "MinVersion", "MaxVersion":
|
||||
f.Set(reflect.ValueOf(uint16(VersionTLS12)))
|
||||
case "SessionTicketKey":
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue