From 8daea1dc06b7dd8d009915e36ae2731f97ad7817 Mon Sep 17 00:00:00 2001 From: v2ray Date: Mon, 11 Jan 2016 01:01:52 +0100 Subject: [PATCH] close inbound ray when there is an error --- proxy/vmess/inbound/inbound.go | 1 + 1 file changed, 1 insertion(+) diff --git a/proxy/vmess/inbound/inbound.go b/proxy/vmess/inbound/inbound.go index 39f1a41e..2acc416f 100644 --- a/proxy/vmess/inbound/inbound.go +++ b/proxy/vmess/inbound/inbound.go @@ -120,6 +120,7 @@ func (this *VMessInboundHandler) HandleConnection(connection *net.TCPConn) error aesStream, err := v2crypto.NewAesEncryptionStream(responseKey[:], responseIV[:]) if err != nil { log.Error("VMessIn: Failed to create AES decryption stream: %v", err) + close(input) return err }