Comments (1)
The process name matching functionality is encapsulated in the match_app_name
function as detailed below:
/**
* @brief Matches an application name pattern against process details.
*
* This function determines whether the provided application name pattern is part of the process's path or name.
* It first checks if the pattern contains a path by searching for "/" or "\\". If a path is present,
* it matches the pattern against the process's path_name; otherwise, it matches against the process's name.
* The matching process is case-insensitive.
*
* @param app The application name or pattern to match against the process details.
* @param process The process details being matched against the application pattern.
* @return True if the process details match the application pattern, False otherwise.
*/
static bool match_app_name(const std::wstring& app, const std::shared_ptr<iphelper::network_process>& process)
{
return (app.find(L'\\') != std::wstring::npos || app.find(L'/') != std::wstring::npos)
? (to_upper(process->path_name).find(app) != std::wstring::npos)
: (to_upper(process->name).find(app) != std::wstring::npos);
}
Passing an empty string to the app
parameter might act as a wildcard, potentially matching any process. However, this behavior hasn't been explicitly tested.
from proxifyre.
Related Issues (20)
- Accidental shutdowns HOT 2
- Problem with logging using proxifyre.exe HOT 5
- A few configuration questions. HOT 2
- Could not load file or assembly 'socksify.dll' or one of its dependencies HOT 2
- Incompatiblity with mitmproxy HOT 10
- Not working - config and log provided HOT 3
- Enable/Disable proxy for a specific program HOT 2
- Fail to launch HOT 5
- Topshelf.Hosts.StartHost Error: 0 : The service failed to start., System.ServiceProcess.TimeoutException: HOT 4
- mstsc (windows remote desktop) Error HOT 3
- Configuration hot reload HOT 2
- Can't compile using VS 2022 HOT 4
- Behavior of the config file HOT 4
- method selection data may be irregular, incompatible with 3proxy
- Can't make ProxiFyre work with proxy HOT 11
- Error at startup with Server 2003 SP2 HOT 13
- UDP relay problem HOT 1
- App is still writing logs even though the log level is set to 'None' in app-config.json HOT 2
- Adding appNames HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from proxifyre.