Skip to content

Commit de4bfe0

Browse files
committed
Clean dir
1 parent e0ad869 commit de4bfe0

File tree

11 files changed

+73
-953
lines changed

11 files changed

+73
-953
lines changed

client.go

+1-8
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ import (
88

99
"github.com/coyove/goflyway/toh"
1010
"github.com/coyove/goflyway/v"
11-
kcp "github.com/xtaci/kcp-go"
1211

1312
"net"
1413
)
@@ -65,8 +64,6 @@ func NewClient(localaddr string, config *ClientConfig) error {
6564
downconn := toh.NewBufConn(conn)
6665
defer conn.Close()
6766

68-
var up net.Conn
69-
var err error
7067
var bind = config.Bind
7168

7269
if config.Dynamic {
@@ -79,11 +76,7 @@ func NewClient(localaddr string, config *ClientConfig) error {
7976
v.Vprint("SOCKS5 destination: ", dst)
8077
}
8178

82-
if config.KCP {
83-
up, err = kcp.Dial(config.Upstream)
84-
} else {
85-
up, err = dialer.Dial()
86-
}
79+
up, err := dialer.Dial()
8780

8881
if err != nil {
8982
v.Eprint("dial server: ", err)

cmd/goflyway/lib/cert.go

-123
This file was deleted.

0 commit comments

Comments
 (0)