Skip to content

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

removed src port from connection logs

Sourav Kalala1cbdfda443a
diff --git a/.gitignore b/.gitignore
index 742948e..635f413 100644
--- a/.gitignore
+++ b/.gitignore
@@ -2,4 +2,6 @@
*.dll
*.sys
*.zip
-*.py
\ No newline at end of file
+*.py
+build/**
+*.pyc
diff --git a/src/ProxyBridge.c b/src/ProxyBridge.c
index 5f79ca9..82ded88 100644
--- a/src/ProxyBridge.c
+++ b/src/ProxyBridge.c
@@ -175,7 +175,7 @@ static DWORD WINAPI packet_processor(LPVOID arg)
snprintf(dest_ip_str, sizeof(dest_ip_str), "%d.%d.%d.%d",
(orig_dest_ip >> 0) & 0xFF, (orig_dest_ip >> 8) & 0xFF,
(orig_dest_ip >> 16) & 0xFF, (orig_dest_ip >> 24) & 0xFF);
- g_connection_callback(process_name, pid, src_port, dest_ip_str, orig_dest_port);
+ g_connection_callback(process_name, pid, dest_ip_str, orig_dest_port);
}
}
diff --git a/src/ProxyBridge.h b/src/ProxyBridge.h
index 0d6cf08..d855368 100644
--- a/src/ProxyBridge.h
+++ b/src/ProxyBridge.h
@@ -14,7 +14,7 @@ extern "C" {
#endif
typedef void (*LogCallback)(const char* message);
-typedef void (*ConnectionCallback)(const char* process_name, DWORD pid, UINT16 src_port, const char* dest_ip, UINT16 dest_port);
+typedef void (*ConnectionCallback)(const char* process_name, DWORD pid, const char* dest_ip, UINT16 dest_port);
typedef enum {
PROXY_TYPE_HTTP = 0,