MCPcopy Index your code
hub / github.com/code-scan/Goal / TestProxy

Function TestProxy

tests/proxy_test.go:9–14  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

7)
8
9func TestProxy(t *testing.T) {
10 go Gproxy.ClientWait("8888") //监听客户端端口,等待客户端链接
11 go Gproxy.ServerWait("8889") // 服务端端口,用户链接用于代理
12 Gproxy.RunProxy("127.0.0.1:8888")
13 // curl baidu.com -x socks5://127.0.0.1:8889
14}

Callers

nothing calls this directly

Calls 3

ClientWaitFunction · 0.92
ServerWaitFunction · 0.92
RunProxyFunction · 0.92

Tested by

no test coverage detected