0
mirror of https://github.com/XTLS/Xray-core.git synced 2025-06-12 11:29:36 +03:00
RPRX
2021-03-08 18:12:38 +00:00
committed by GitHub
parent d7cd71b741
commit 3de5af0611

View File

@ -40,10 +40,8 @@ func (err *Error) pkgPath() string {
return ""
}
path := reflect.TypeOf(err.pathObj).PkgPath()
for i := 0; i < len(path); i++ {
if path[i] == '/' {
return path[trim:]
}
if len(path) >= trim {
return path[trim:]
}
return path
}