We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents ec957b8 + 9fb3940 commit ca7ce02Copy full SHA for ca7ce02
1 file changed
socks/socks.go
@@ -61,7 +61,7 @@ func listenClient(port string) {
61
}
62
63
func forward(conn net.Conn) {
64
- scfConn := pickConn(sessions)
+ scfConn := pickConn()
65
66
_forward := func(src, dest net.Conn) {
67
defer src.Close()
@@ -74,7 +74,7 @@ func forward(conn net.Conn) {
74
75
76
77
-func pickConn(sessions []*yamux.Session) net.Conn {
+func pickConn() net.Conn {
78
for {
79
l := len(sessions)
80
if l == 0 {
0 commit comments