Skip to content

Make process name and path matching case-insensitive on Windows - #4346

Open
garmr-ulfr wants to merge 2 commits into
SagerNet:stablefrom
getlantern:normalize-process-rule-win
Open

garmr-ulfr wants to merge 2 commits into
SagerNet:stablefrom
getlantern:normalize-process-rule-win

Conversation

@garmr-ulfr

Copy link
Copy Markdown

Windows file paths are case-insensitive, C:\Program Files\myPath and c:\program files\mypath point to the same directory. This normalizes processPath and processName to lowercase on Windows before storing in/loading from rule.processMap. metadata.ProcessInfo.ProcessPath and metadata.ProcessInfo.ProcessName are not modified.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants