github.com/Psiphon-Labs/tls-tris@v0.0.0-20230824155421-58bf6d336a9a/_dev/caddy/caddy.patch (about) 1 diff --git a/caddytls/config.go b/caddytls/config.go 2 index 6632aed..767886c 100644 3 --- a/caddytls/config.go 4 +++ b/caddytls/config.go 5 @@ -372,7 +372,7 @@ func SetDefaultTLSParams(config *Config) { 6 config.ProtocolMinVersion = tls.VersionTLS11 7 } 8 if config.ProtocolMaxVersion == 0 { 9 - config.ProtocolMaxVersion = tls.VersionTLS12 10 + config.ProtocolMaxVersion = tls.VersionTLS13 11 } 12 13 // Prefer server cipher suites 14 @@ -394,6 +394,7 @@ var supportedProtocols = map[string]uint16{ 15 "tls1.0": tls.VersionTLS10, 16 "tls1.1": tls.VersionTLS11, 17 "tls1.2": tls.VersionTLS12, 18 + "tls1.3": tls.VersionTLS13, 19 } 20 21 // Map of supported ciphers, used only for parsing config.