mirror of
https://github.com/kataras/iris.git
synced 2025-12-23 04:47:02 +00:00
As the default value is TLS 1.0, which is considered insecure, it is recommended to explicitly set the MinVersion to a secure version of TLS
This commit is contained in:
@@ -22,7 +22,7 @@ import (
|
||||
// Look `ProxyHandlerRemote` too.
|
||||
func ProxyHandler(target *url.URL, config *tls.Config) *httputil.ReverseProxy {
|
||||
if config == nil {
|
||||
config = &tls.Config{}
|
||||
config = &tls.Config{MinVersion: tls.VersionTLS11}
|
||||
}
|
||||
|
||||
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{}
|
||||
config = &tls.Config{MinVersion: tls.VersionTLS11}
|
||||
}
|
||||
|
||||
director := func(req *http.Request) {
|
||||
|
||||
Reference in New Issue
Block a user