Integrate new fake package and doppel into proxy

This commit is contained in:
9seconds
2026-03-12 19:07:11 +01:00
parent 37f8d18be5
commit bb49c6a55d
8 changed files with 76 additions and 85 deletions
+1 -12
View File
@@ -1,9 +1,6 @@
package network
import (
"crypto/tls"
"net/http"
)
import "net/http"
type networkHTTPTransport struct {
userAgent string
@@ -15,11 +12,3 @@ func (n networkHTTPTransport) RoundTrip(req *http.Request) (*http.Response, erro
return n.next.RoundTrip(req) //nolint: wrapcheck
}
func (n networkHTTPTransport) TrustTLS() {
tr := n.next.(*http.Transport)
if tr.TLSClientConfig == nil {
tr.TLSClientConfig = &tls.Config{}
}
tr.TLSClientConfig.InsecureSkipVerify = true
}