Skip to content

Commit

Permalink
Fix FasthttpSocksDialer documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
erikdubbelboer committed Sep 13, 2019
1 parent b29d896 commit 8b0b919
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions fasthttpproxy/socks5.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@ import (
// the provided SOCKS5 proxy.
//
// Example usage:
// c := &fasthttp.Client{
// Dial: fasthttpproxy.FasthttpSocksDialer("localhost:9050"),
// }
// c := &fasthttp.Client{
// Dial: fasthttpproxy.FasthttpSocksDialer("localhost:9050"),
// }
func FasthttpSocksDialer(proxyAddr string) fasthttp.DialFunc {
dialer, err := proxy.SOCKS5("tcp", proxyAddr, nil, proxy.Direct)
// It would be nice if we could return the error here. But we can't
Expand Down

0 comments on commit 8b0b919

Please sign in to comment.