Skip to content

Commit

Permalink
fix: update error message
Browse files Browse the repository at this point in the history
  • Loading branch information
WendelHime committed Aug 22, 2024
1 parent f23302a commit 38a53d9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion direct.go
Original file line number Diff line number Diff line change
Expand Up @@ -492,7 +492,7 @@ func verifyPeerCertificate(rawCerts [][]byte, roots *x509.CertPool, domain strin
_, sniErr := cert.Verify(sniOpts)
_, masqueradeErr := cert.Verify(masqueradeOpts)
if masqueradeErr != nil && sniErr != nil {
return fmt.Errorf("certificate verification failed for masquerade: %w", masqueradeErr)
return fmt.Errorf("certificate verification failed for masquerade and SNI: [%w],[%w]", masqueradeErr, sniErr)
}

return nil
Expand Down

0 comments on commit 38a53d9

Please sign in to comment.