diff --git a/package.json b/package.json index 530464c8..8f374b93 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "cosmos-server", - "version": "0.17.4", + "version": "0.17.5", "description": "", "main": "test-server.js", "bugs": { diff --git a/src/proxy/SocketProxy.go b/src/proxy/SocketProxy.go index 6dba12a9..564df8d8 100644 --- a/src/proxy/SocketProxy.go +++ b/src/proxy/SocketProxy.go @@ -158,8 +158,6 @@ func handleTCPProxy(listener net.Listener, target string, proxyInfo *ProxyInfo, case <-proxyInfo.stop: utils.Log("[SocketProxy] Stopping TCP proxy on " + listenAddr) return - case <-time.After(5 * time.Minute): - continue case err := <-acceptErrChan: utils.Error("[SocketProxy] Failed to accept TCP connection", err) case client := <-acceptChan: diff --git a/test.go b/test.go deleted file mode 100644 index df3cc0f6..00000000 --- a/test.go +++ /dev/null @@ -1,23 +0,0 @@ -package main - -import ( - "fmt" - "strings" -) - -func main() { - target := ":80"; - - destinationArr := strings.Split(target, "://") - listenProtocol := "tcp" - - if len(destinationArr) > 1 { - target = destinationArr[1] - listenProtocol = destinationArr[0] - } else { - target = destinationArr[0] - } - - fmt.Println(listenProtocol) - fmt.Println(target) -} \ No newline at end of file