mirror of https://github.com/Dreamacro/clash.git
Chore: make CodeQL happy
This commit is contained in:
parent
c1285adbf8
commit
3360839fe3
|
@ -333,9 +333,9 @@ func match(metadata *C.Metadata) (C.Proxy, C.Rule, error) {
|
||||||
if !processFound && rule.ShouldFindProcess() {
|
if !processFound && rule.ShouldFindProcess() {
|
||||||
processFound = true
|
processFound = true
|
||||||
|
|
||||||
srcPort, err := strconv.Atoi(metadata.SrcPort)
|
srcPort, err := strconv.ParseUint(metadata.SrcPort, 10, 16)
|
||||||
if err == nil {
|
if err == nil {
|
||||||
path, err := P.FindProcessName(metadata.NetWork.String(), metadata.SrcIP, srcPort)
|
path, err := P.FindProcessName(metadata.NetWork.String(), metadata.SrcIP, int(srcPort))
|
||||||
if err != nil {
|
if err != nil {
|
||||||
log.Debugln("[Process] find process %s: %v", metadata.String(), err)
|
log.Debugln("[Process] find process %s: %v", metadata.String(), err)
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in New Issue