Force Proxy to any Windows/MacOS/Linux Application TCP and UDP traffic
C ccybersecurityhttp3httpproxylinuxlinux-proxymacosmacos-appmacos-proxyproxifierproxifier-alternativeproxyclienttcpthick-clientudpwindivertwindows
removed clear rule
Sourav Kalalf118a74f29f0
diff --git a/cli/ProxyBridgeNative.cs b/cli/ProxyBridgeNative.csindex 2d39a89..b768104 100644--- a/cli/ProxyBridgeNative.cs+++ b/cli/ProxyBridgeNative.cs@@ -48,10 +48,6 @@ public static class ProxyBridgeNative[MarshalAs(UnmanagedType.LPStr)] string processName,RuleAction action);- [DllImport(DllName, CallingConvention = CallingConvention.Cdecl)]- [return: MarshalAs(UnmanagedType.Bool)]- public static extern bool ProxyBridge_ClearRules();-[DllImport(DllName, CallingConvention = CallingConvention.Cdecl)][return: MarshalAs(UnmanagedType.Bool)]public static extern bool ProxyBridge_EnableRule(uint ruleId);diff --git a/gui/Interop/ProxyBridgeNative.cs b/gui/Interop/ProxyBridgeNative.csindex 4ecba8d..3e939a7 100644--- a/gui/Interop/ProxyBridgeNative.cs+++ b/gui/Interop/ProxyBridgeNative.cs@@ -51,10 +51,6 @@ public static class ProxyBridgeNative[MarshalAs(UnmanagedType.LPStr)] string processName,RuleAction action);- [DllImport(DllName, CallingConvention = CallingConvention.Cdecl)]- [return: MarshalAs(UnmanagedType.Bool)]- public static extern bool ProxyBridge_ClearRules();-[DllImport(DllName, CallingConvention = CallingConvention.Cdecl)][return: MarshalAs(UnmanagedType.Bool)]public static extern bool ProxyBridge_EnableRule(uint ruleId);diff --git a/gui/Services/ProxyBridgeService.cs b/gui/Services/ProxyBridgeService.csindex 4fc3f95..9a12ac5 100644--- a/gui/Services/ProxyBridgeService.cs+++ b/gui/Services/ProxyBridgeService.cs@@ -80,11 +80,6 @@ public class ProxyBridgeService : IDisposablereturn ProxyBridgeNative.ProxyBridge_DisableRule(ruleId);}- public bool ClearRules()- {- return ProxyBridgeNative.ProxyBridge_ClearRules();- }-public void Dispose(){Stop();diff --git a/img/ProxyBridge_CLI.png b/img/ProxyBridge_CLI.pngnew file mode 100644index 0000000..6332acfBinary files /dev/null and b/img/ProxyBridge_CLI.png differdiff --git a/src/ProxyBridge.c b/src/ProxyBridge.cindex b300e0a..2efe266 100644--- a/src/ProxyBridge.c+++ b/src/ProxyBridge.c@@ -840,22 +840,6 @@ PROXYBRIDGE_API UINT32 ProxyBridge_AddRule(const char* process_name, RuleActionreturn rule->rule_id;}-PROXYBRIDGE_API BOOL ProxyBridge_ClearRules(void)-{- if (running)- return FALSE;-- while (rules_list != NULL)- {- PROCESS_RULE *to_free = rules_list;- rules_list = rules_list->next;- free(to_free);- }-- g_next_rule_id = 1;- return TRUE;-}-PROXYBRIDGE_API BOOL ProxyBridge_EnableRule(UINT32 rule_id){if (rule_id == 0)diff --git a/src/ProxyBridge.h b/src/ProxyBridge.hindex bcec6e4..60d7001 100644--- a/src/ProxyBridge.h+++ b/src/ProxyBridge.h@@ -28,7 +28,6 @@ typedef enum {} RuleAction;PROXYBRIDGE_API UINT32 ProxyBridge_AddRule(const char* process_name, RuleAction action);-PROXYBRIDGE_API BOOL ProxyBridge_ClearRules(void);PROXYBRIDGE_API BOOL ProxyBridge_EnableRule(UINT32 rule_id);PROXYBRIDGE_API BOOL ProxyBridge_DisableRule(UINT32 rule_id);PROXYBRIDGE_API BOOL ProxyBridge_SetProxyConfig(ProxyType type, const char* proxy_ip, UINT16 proxy_port);