1
0
mirror of https://github.com/v2fly/v2ray-core.git synced 2026-05-09 14:09:07 -04:00

simplify tcp connection

This commit is contained in:
v2ray
2016-05-02 23:53:16 +02:00
parent 406360ed3e
commit f594f5b606
7 changed files with 18 additions and 115 deletions

View File

@@ -95,7 +95,7 @@ func parseHost(rawHost string, defaultPort v2net.Port) (v2net.Destination, error
return v2net.TCPDestination(v2net.DomainAddress(host), port), nil
}
func (this *HttpProxyServer) handleConnection(conn hub.Connection) {
func (this *HttpProxyServer) handleConnection(conn *hub.Connection) {
defer conn.Close()
reader := bufio.NewReader(conn)