mirror of
https://github.com/xjasonlyu/tun2socks.git
synced 2024-12-30 02:37:01 +00:00
Style: use gofumpt for fmt
This commit is contained in:
+1
-3
@@ -14,9 +14,7 @@ const (
|
||||
tcpConnectTimeout = 5 * time.Second
|
||||
)
|
||||
|
||||
var (
|
||||
_defaultDialer Dialer = &Base{}
|
||||
)
|
||||
var _defaultDialer Dialer = &Base{}
|
||||
|
||||
type Dialer interface {
|
||||
DialContext(context.Context, *M.Metadata) (net.Conn, error)
|
||||
|
||||
+1
-1
@@ -38,7 +38,7 @@ func NewSocks5(addr, user, pass string) (*Socks5, error) {
|
||||
}
|
||||
|
||||
func (ss *Socks5) DialContext(ctx context.Context, metadata *M.Metadata) (c net.Conn, err error) {
|
||||
var network = "tcp"
|
||||
network := "tcp"
|
||||
if ss.unix {
|
||||
network = "unix"
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user