Skip to content

Commit

Permalink
docs: update README.md to use url.URL structs instead of mustParseURL
Browse files Browse the repository at this point in the history
  • Loading branch information
presbrey committed Aug 10, 2024
1 parent c87b751 commit 5d518bd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,11 +48,11 @@ func main() {
config := multiproxy.Config{
Proxies: []multiproxy.Proxy{
{
URL: mustParseURL("http://proxy1.example.com:8080"),
URL: &url.URL{Scheme: "http", Host: "proxy1.example.com:8080"},
Auth: &multiproxy.ProxyAuth{Username: "user1", Password: "pass1"},
},
{
URL: mustParseURL("http://proxy2.example.com:8080"),
URL: &url.URL{Scheme: "socks5", Host: "proxy2.example.com:1080"},
Auth: &multiproxy.ProxyAuth{Username: "user2", Password: "pass2"},
},
},
Expand Down

0 comments on commit 5d518bd

Please sign in to comment.