Skip to content

Commit 5d518bd

Browse files
committed
docs: update README.md to use url.URL structs instead of mustParseURL
1 parent c87b751 commit 5d518bd

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,11 +48,11 @@ func main() {
4848
config := multiproxy.Config{
4949
Proxies: []multiproxy.Proxy{
5050
{
51-
URL: mustParseURL("http://proxy1.example.com:8080"),
51+
URL: &url.URL{Scheme: "http", Host: "proxy1.example.com:8080"},
5252
Auth: &multiproxy.ProxyAuth{Username: "user1", Password: "pass1"},
5353
},
5454
{
55-
URL: mustParseURL("http://proxy2.example.com:8080"),
55+
URL: &url.URL{Scheme: "socks5", Host: "proxy2.example.com:1080"},
5656
Auth: &multiproxy.ProxyAuth{Username: "user2", Password: "pass2"},
5757
},
5858
},

0 commit comments

Comments
 (0)