Skip to content

Commit f73fd11

Browse files
Add files via upload
1 parent af78b2b commit f73fd11

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

core_engine/main.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ func main() {
100100
}
101101

102102
time.Sleep(900 * time.Millisecond)
103-
ping, status := testProxy(c.TestPort)
103+
ping, status := testProxy(c.ListenIP,c.TestPort)
104104

105105
if status != "success" {
106106
logStr := strings.ReplaceAll(string(clientOutput.Bytes()), "\n", " ")
@@ -124,7 +124,7 @@ func main() {
124124
fmt.Println(string(outputData))
125125
}
126126

127-
func testProxy(port int) (int64, string) {
127+
func testProxy(listenIP string, port int) (int64, string) {
128128
targetURL := "http://www.google.com/generate_204"
129129
timeout := 8 * time.Second
130130
dialer, err := proxy.SOCKS5("tcp", fmt.Sprintf("%s:%d", listenIP, port), nil, proxy.Direct)

0 commit comments

Comments
 (0)