mirror of
https://github.com/XTLS/Xray-core.git
synced 2024-12-22 19:33:32 +02:00
This commit is contained in:
parent
d7cd71b741
commit
3de5af0611
1 changed files with 2 additions and 4 deletions
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue