1
0
mirror of https://github.com/kataras/iris.git synced 2026-01-03 18:27:07 +00:00

set min version on tls configuration even on the tests and examples

This commit is contained in:
Gerasimos (Makis) Maropoulos
2022-03-10 21:48:05 +02:00
parent 096349bb56
commit 7ab0f6fff5
8 changed files with 19 additions and 12 deletions

View File

@@ -22,7 +22,7 @@ import (
// Look `ProxyHandlerRemote` too.
func ProxyHandler(target *url.URL, config *tls.Config) *httputil.ReverseProxy {
if config == nil {
config = &tls.Config{MinVersion: tls.VersionTLS11}
config = &tls.Config{MinVersion: tls.VersionTLS13}
}
director := func(req *http.Request) {
@@ -89,7 +89,7 @@ func modifyProxiedRequest(req *http.Request, target *url.URL) {
// Look `ProxyHandler` too.
func ProxyHandlerRemote(target *url.URL, config *tls.Config) *httputil.ReverseProxy {
if config == nil {
config = &tls.Config{MinVersion: tls.VersionTLS11}
config = &tls.Config{MinVersion: tls.VersionTLS13}
}
director := func(req *http.Request) {