Skip to content

Commit

Permalink
fix(lint): address linting issues in code
Browse files Browse the repository at this point in the history
  • Loading branch information
lavish440 committed Oct 22, 2024
1 parent 5425759 commit 269afe8
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
8 changes: 5 additions & 3 deletions fasthttpproxy/http.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,8 @@ package fasthttpproxy
import (
"time"

"golang.org/x/net/http/httpproxy"

"github.com/valyala/fasthttp"
"golang.org/x/net/http/httpproxy"
)

// FasthttpHTTPDialer returns a fasthttp.DialFunc that dials using
Expand Down Expand Up @@ -57,7 +56,10 @@ func FasthttpHTTPDialerDualStack(proxy string) fasthttp.DialFunc {
// Dial: fasthttpproxy.FasthttpHTTPDialerDualStackTimeout("username:password@localhost:9050", time.Second * 2),
// }
func FasthttpHTTPDialerDualStackTimeout(proxy string, timeout time.Duration) fasthttp.DialFunc {
d := Dialer{Config: httpproxy.Config{HTTPProxy: proxy, HTTPSProxy: proxy}, Timeout: timeout, ConnectTimeout: timeout, DialDualStack: true}
d := Dialer{
Config: httpproxy.Config{HTTPProxy: proxy, HTTPSProxy: proxy}, Timeout: timeout, ConnectTimeout: timeout,
DialDualStack: true,
}
dialFunc, _ := d.GetDialFunc(false)
return dialFunc
}
3 changes: 1 addition & 2 deletions fasthttpproxy/socks5.go
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
package fasthttpproxy

import (
"golang.org/x/net/http/httpproxy"

"github.com/valyala/fasthttp"
"golang.org/x/net/http/httpproxy"
)

// FasthttpSocksDialer returns a fasthttp.DialFunc that dials using
Expand Down

0 comments on commit 269afe8

Please sign in to comment.