mirror of
https://github.com/SagerNet/sing-box.git
synced 2025-06-08 11:44:13 +08:00
Remove strings.ToLower
This commit is contained in:
parent
bdfc1fe35c
commit
18bbee82f0
@ -27,7 +27,7 @@ func NewProcessPathItem(processNameList []string) *ProcessPathItem {
|
|||||||
processMap: make(map[string]bool),
|
processMap: make(map[string]bool),
|
||||||
}
|
}
|
||||||
for _, processName := range processNameList {
|
for _, processName := range processNameList {
|
||||||
rule.processMap[strings.ToLower(processName)] = true
|
rule.processMap[processName] = true
|
||||||
}
|
}
|
||||||
return rule
|
return rule
|
||||||
}
|
}
|
||||||
@ -36,7 +36,7 @@ func (r *ProcessPathItem) Match(metadata *adapter.InboundContext) bool {
|
|||||||
if metadata.ProcessInfo == nil || metadata.ProcessInfo.ProcessPath == "" {
|
if metadata.ProcessInfo == nil || metadata.ProcessInfo.ProcessPath == "" {
|
||||||
return false
|
return false
|
||||||
}
|
}
|
||||||
return r.processMap[strings.ToLower(metadata.ProcessInfo.ProcessPath)]
|
return r.processMap[metadata.ProcessInfo.ProcessPath]
|
||||||
}
|
}
|
||||||
|
|
||||||
func (r *ProcessPathItem) String() string {
|
func (r *ProcessPathItem) String() string {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user