rename func
This commit is contained in:
@@ -63,11 +63,11 @@ func serverTcpListen(tcpListen TcpListen) {
|
||||
continue
|
||||
}
|
||||
fmt.Printf("[INFO] TCP connection from %v, local: %v\n", conn.RemoteAddr(), conn.LocalAddr())
|
||||
go handleRequest(tcpListen, conn)
|
||||
go handleTcpRequest(tcpListen, conn)
|
||||
}
|
||||
}
|
||||
|
||||
func handleRequest(tcpListen TcpListen, sconn net.Conn) {
|
||||
func handleTcpRequest(tcpListen TcpListen, sconn net.Conn) {
|
||||
defer sconn.Close()
|
||||
ip := tcpListen.Backend
|
||||
dconn, err := net.Dial("tcp", ip)
|
||||
|
||||
Reference in New Issue
Block a user