Skip to content

Commit f635041

Browse files
joohoilafriks
authored andcommitted
Fix TLS errors when using acme/autocert for local connections (#5820) (#5826)
1 parent 3fa49f3 commit f635041

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

modules/private/internal.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ func decodeJSONError(resp *http.Response) *Response {
3939
func newInternalRequest(url, method string) *httplib.Request {
4040
req := newRequest(url, method).SetTLSClientConfig(&tls.Config{
4141
InsecureSkipVerify: true,
42+
ServerName: setting.Domain,
4243
})
4344
if setting.Protocol == setting.UnixSocket {
4445
req.SetTransport(&http.Transport{

0 commit comments

Comments
 (0)