mirror of
				https://gitee.com/gitea/gitea
				synced 2025-11-04 08:30:25 +08:00 
			
		
		
		
	Replace "unix" by "http+unix" for PROTOCOL (#17771)
This commit is contained in:
		@@ -46,7 +46,7 @@ func newInternalRequest(ctx context.Context, url, method string) *httplib.Reques
 | 
			
		||||
		InsecureSkipVerify: true,
 | 
			
		||||
		ServerName:         setting.Domain,
 | 
			
		||||
	})
 | 
			
		||||
	if setting.Protocol == setting.UnixSocket {
 | 
			
		||||
	if setting.Protocol == setting.HTTPUnix {
 | 
			
		||||
		req.SetTransport(&http.Transport{
 | 
			
		||||
			DialContext: func(ctx context.Context, _, _ string) (net.Conn, error) {
 | 
			
		||||
				var d net.Dialer
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user