summaryrefslogtreecommitdiffstats
path: root/modules
diff options
context:
space:
mode:
authorJoona Hoikkala <joohoi@users.noreply.github.com>2019-01-24 02:47:54 +0200
committertechknowlogick <matti@mdranta.net>2019-01-23 19:47:54 -0500
commit3b364029f74a53db7f1719d67a4fd83202b850d4 (patch)
tree9aa21f57c47ab3df1a16645558bdc7b7b6254525 /modules
parent331c9120e87935b940c14ac9ce370e3e27655ab1 (diff)
downloadgitea-3b364029f74a53db7f1719d67a4fd83202b850d4.tar.gz
gitea-3b364029f74a53db7f1719d67a4fd83202b850d4.zip
Fix TLS errors when using acme/autocert for local connections (#5820)
Diffstat (limited to 'modules')
-rw-r--r--modules/private/internal.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/modules/private/internal.go b/modules/private/internal.go
index a230bc744c..b1c868b40f 100644
--- a/modules/private/internal.go
+++ b/modules/private/internal.go
@@ -39,6 +39,7 @@ func decodeJSONError(resp *http.Response) *Response {
func newInternalRequest(url, method string) *httplib.Request {
req := newRequest(url, method).SetTLSClientConfig(&tls.Config{
InsecureSkipVerify: true,
+ ServerName: setting.Domain,
})
if setting.Protocol == setting.UnixSocket {
req.SetTransport(&http.Transport{