Skip to content

galmi/go-proxychain

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

go-proxychain

Http client with connection through proxy chain

Usage example

/*
Proxy chain: 
127.0.0.1:1080 => 212.119.47.150:1080 => 212.119.47.229:1085 => api.ipify.org
*/
proxyChain := []ProxyConfig{
    {
        address: "localhost:1080",
        auth:    nil,
    },
    {
        address: "212.119.47.150:1080",
        auth: &proxy.Auth{
            User:     "myLogin",
            Password: "myPassword",
        },
    },
    {
        address: "212.119.47.229:1085",
        auth:    nil,
    },
}
req, _ := http.NewRequest(http.MethodGet, "https://api.ipify.org/", nil)
client := GetClient(proxyChain)
resp, err := client.Do(req)

About

Http client with connection through proxy chain

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages