aboutsummaryrefslogtreecommitdiff
path: root/fasthttpproxy
diff options
context:
space:
mode:
authorGravatar Erik Dubbelboer <erik@dubbelboer.com> 2019-09-13 21:47:26 +0200
committerGravatar Erik Dubbelboer <erik@dubbelboer.com> 2019-09-13 21:47:26 +0200
commit8b0b919f2655baaef640d8c2a63e690b07c08e60 (patch)
tree315fea9076bd575c54fd1762696f994f4222b412 /fasthttpproxy
parentFix fuzzit for Go 1.13 (diff)
downloadfasthttp-8b0b919f2655baaef640d8c2a63e690b07c08e60.tar.gz
fasthttp-8b0b919f2655baaef640d8c2a63e690b07c08e60.tar.bz2
fasthttp-8b0b919f2655baaef640d8c2a63e690b07c08e60.zip
Fix FasthttpSocksDialer documentationv1.5.0
Diffstat (limited to 'fasthttpproxy')
-rw-r--r--fasthttpproxy/socks5.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/fasthttpproxy/socks5.go b/fasthttpproxy/socks5.go
index c1675e1..5752704 100644
--- a/fasthttpproxy/socks5.go
+++ b/fasthttpproxy/socks5.go
@@ -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