rewrite error lib

This commit is contained in:
Darien Raymond committed 2016-12-04 09:10:47 +01:00
1 parent a4019a6900
commit efb24a4d21
65 files changed
+251 -132

No files matched your search

+2 -1
View File
@@ -9,6 +9,7 @@ import (
"v2ray.com/core/app/proxyman"
"v2ray.com/core/common"
"v2ray.com/core/common/alloc"
"v2ray.com/core/common/errors"
v2io "v2ray.com/core/common/io"
"v2ray.com/core/common/loader"
"v2ray.com/core/common/log"
@@ -154,7 +155,7 @@ func (v *VMessInboundHandler) HandleConnection(connection internet.Connection) {
v.RUnlock()
if err != nil {
if err != io.EOF {
if errors.Cause(err) != io.EOF {
log.Access(connection.RemoteAddr(), "", log.AccessRejected, err)
log.Info("VMessIn: Invalid request from ", connection.RemoteAddr(), ": ", err)
}