MCPcopy Create free account
hub / github.com/0xUnixIO/pulse / newProxiedClient

Function newProxiedClient

internal/nodeapi/check.go:76–90  ·  view source on GitHub ↗
(proxyURL string)

Source from the content-addressed store, hash-verified

74}
75
76func newProxiedClient(proxyURL string) *http.Client {
77u, _ := url.Parse(proxyURL)
78return &http.Client{
79Timeout: 9 * time.Second,
80Transport: &http.Transport{
81Proxy: http.ProxyURL(u),
82},
83CheckRedirect: func(req *http.Request, via []*http.Request) error {
84if len(via) >= 5 {
85return http.ErrUseLastResponse
86}
87return nil
88},
89}
90}
91
92func findLocalProxyPort(configJSON string) string {
93if configJSON == "" {

Callers 1

DoCheckUnlockMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected