Skip to content
Snippets Groups Projects
Commit ca6765e3 authored by Yawning Angel's avatar Yawning Angel
Browse files

transports/meeklite: Tweak the TLS configuration

parent 2ff57980
No related branches found
No related tags found
No related merge requests found
......@@ -149,7 +149,15 @@ func (rt *roundTripper) dialTLS(network, addr string) (net.Conn, error) {
log.Warnf("meek_lite - HPKP disabled for host: %v", host)
}
conn := utls.UClient(rawConn, &utls.Config{ServerName: host, VerifyPeerCertificate: verifyPeerCertificateFn}, *rt.clientHelloID)
conn := utls.UClient(rawConn, &utls.Config{
ServerName: host,
VerifyPeerCertificate: verifyPeerCertificateFn,
// `crypto/tls` gradually ramps up the record size. While this is
// a good optimization and is a relatively common server feature,
// neither Firefox nor Chromium appear to use such optimizations.
DynamicRecordSizingDisabled: true,
}, *rt.clientHelloID)
if err = conn.Handshake(); err != nil {
conn.Close()
return nil, err
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment