Skip to content

Commit

Permalink
Fix TLS errors when using acme/autocert for local connections (go-git…
Browse files Browse the repository at this point in the history
  • Loading branch information
joohoi authored and bmackinney committed Jan 27, 2019
1 parent 9a70138 commit f54bef1
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions modules/private/internal.go
Original file line number Diff line number Diff line change
Expand Up @@ -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{
Expand Down

0 comments on commit f54bef1

Please sign in to comment.