Skip to content

Force Proxy to any Windows/MacOS/Linux Application TCP and UDP traffic

Fixed DHCP issues #15

Sourav Kalal3b86488a0bb0
diff --git a/Windows/src/ProxyBridge.c b/Windows/src/ProxyBridge.c
index d612dd2..7cf161b 100644
--- a/Windows/src/ProxyBridge.c
+++ b/Windows/src/ProxyBridge.c
@@ -208,9 +208,13 @@ static DWORD WINAPI packet_processor(LPVOID arg)
else
action = check_process_rule(src_ip, src_port, dest_ip, dest_port, TRUE);
- // Override PROXY to DIRECT for critical IPs
+ // Override PROXY to DIRECT for critical IPs and ports
if (action == RULE_ACTION_PROXY && is_broadcast_or_multicast(dest_ip))
action = RULE_ACTION_DIRECT;
+
+ // Override PROXY to DIRECT for DHCP ports (67=server, 68=client)
+ if (action == RULE_ACTION_PROXY && (dest_port == 67 || dest_port == 68))
+ action = RULE_ACTION_DIRECT;
if (g_connection_callback != NULL)
{