Skip to content

SetProxy #53

Open
Open
@qb-0

Description

@qb-0

I thought SetProxy could be useful. Maybe this can be added in the future.

// SetProxy sets a Proxy for the HTTP client
func (m *Mega) SetProxy(proxy string) {
	proxyURL, _ := url.Parse(proxy)
	transport := &http.Transport{
		Proxy: http.ProxyURL(proxyURL),
	}
	m.client.Transport = transport
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions