Skip to content

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

updated to version 3.0 added about view

Sourav Kalal6729b62191a0
diff --git a/MacOS/ProxyBridge/ProxyBridge.xcodeproj/project.pbxproj b/MacOS/ProxyBridge/ProxyBridge.xcodeproj/project.pbxproj
index 9042bb6..eebd57f 100644
--- a/MacOS/ProxyBridge/ProxyBridge.xcodeproj/project.pbxproj
+++ b/MacOS/ProxyBridge/ProxyBridge.xcodeproj/project.pbxproj
@@ -293,13 +293,13 @@
GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
GCC_WARN_UNDECLARED_SELECTOR = YES;
- GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
- GCC_WARN_UNUSED_FUNCTION = YES;
- GCC_WARN_UNUSED_VARIABLE = YES;
- LOCALIZATION_PREFERS_STRING_CATALOGS = YES;
- MACOSX_DEPLOYMENT_TARGET = 13.0;
- MTL_ENABLE_DEBUG_INFO = INCLUDE_SOURCE;
- MTL_FAST_MATH = YES;
+ GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
+ GCC_WARN_UNUSED_FUNCTION = YES;
+ GCC_WARN_UNUSED_VARIABLE = YES;
+ LOCALIZATION_PREFERS_STRING_CATALOGS = YES;
+ MACOSX_DEPLOYMENT_TARGET = 13.0;
+ MTL_ENABLE_DEBUG_INFO = INCLUDE_SOURCE;
+ MTL_FAST_MATH = YES;
ONLY_ACTIVE_ARCH = YES;
SDKROOT = macosx;
SWIFT_ACTIVE_COMPILATION_CONDITIONS = "DEBUG $(inherited)";
@@ -351,13 +351,13 @@
GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
GCC_WARN_UNDECLARED_SELECTOR = YES;
- GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
- GCC_WARN_UNUSED_FUNCTION = YES;
- GCC_WARN_UNUSED_VARIABLE = YES;
- LOCALIZATION_PREFERS_STRING_CATALOGS = YES;
- MACOSX_DEPLOYMENT_TARGET = 13.0;
- MTL_ENABLE_DEBUG_INFO = NO;
- MTL_FAST_MATH = YES;
+ GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
+ GCC_WARN_UNUSED_FUNCTION = YES;
+ GCC_WARN_UNUSED_VARIABLE = YES;
+ LOCALIZATION_PREFERS_STRING_CATALOGS = YES;
+ MACOSX_DEPLOYMENT_TARGET = 13.0;
+ MTL_ENABLE_DEBUG_INFO = NO;
+ MTL_FAST_MATH = YES;
SDKROOT = macosx;
SWIFT_COMPILATION_MODE = wholemodule;
};
@@ -397,7 +397,7 @@
"$(inherited)",
"@executable_path/../Frameworks",
);
- MARKETING_VERSION = 1.0;
+ MARKETING_VERSION = 3.0;
PRODUCT_BUNDLE_IDENTIFIER = com.interceptsuite.ProxyBridge;
PRODUCT_NAME = "$(TARGET_NAME)";
PROVISIONING_PROFILE_SPECIFIER = "";
@@ -445,7 +445,7 @@
"$(inherited)",
"@executable_path/../Frameworks",
);
- MARKETING_VERSION = 1.0;
+ MARKETING_VERSION = 3.0;
PRODUCT_BUNDLE_IDENTIFIER = com.interceptsuite.ProxyBridge;
PRODUCT_NAME = "$(TARGET_NAME)";
PROVISIONING_PROFILE_SPECIFIER = "";
@@ -487,7 +487,7 @@
"@executable_path/../Frameworks",
"@executable_path/../../../../Frameworks",
);
- MARKETING_VERSION = 1.0;
+ MARKETING_VERSION = 3.0;
PRODUCT_BUNDLE_IDENTIFIER = com.interceptsuite.ProxyBridge.extension;
PRODUCT_NAME = "$(inherited)";
REGISTER_APP_GROUPS = YES;
@@ -528,7 +528,7 @@
"@executable_path/../Frameworks",
"@executable_path/../../../../Frameworks",
);
- MARKETING_VERSION = 1.0;
+ MARKETING_VERSION = 3.0;
PRODUCT_BUNDLE_IDENTIFIER = com.interceptsuite.ProxyBridge.extension;
PRODUCT_NAME = "$(inherited)";
REGISTER_APP_GROUPS = YES;
diff --git a/MacOS/ProxyBridge/ProxyBridge/AboutView.swift b/MacOS/ProxyBridge/ProxyBridge/AboutView.swift
new file mode 100644
index 0000000..b4ddd9e
--- /dev/null
+++ b/MacOS/ProxyBridge/ProxyBridge/AboutView.swift
@@ -0,0 +1,58 @@
+import SwiftUI
+
+struct AboutView: View {
+ @Environment(\.dismiss) var dismiss
+
+ var body: some View {
+ VStack(spacing: 20) {
+ Text("ProxyBridge")
+ .font(.system(size: 28, weight: .bold))
+ .foregroundColor(.accentColor)
+
+ Text("Version 3.0")
+ .font(.system(size: 14))
+ .foregroundColor(.secondary)
+
+ Text("Universal proxy client for macOS applications")
+ .font(.system(size: 14))
+ .foregroundColor(.secondary)
+ .multilineTextAlignment(.center)
+ .padding(.bottom, 8)
+
+ Text("Author: Sourav Kalal / InterceptSuite")
+ .font(.system(size: 13))
+ .foregroundColor(.secondary)
+ .padding(.top, 4)
+
+ VStack(spacing: 12) {
+ HStack {
+ Text("Website:")
+ .foregroundColor(.secondary)
+ Link("interceptsuite.com", destination: URL(string: "https://interceptsuite.com")!)
+ .foregroundColor(.accentColor)
+ }
+
+ HStack {
+ Text("GitHub:")
+ .foregroundColor(.secondary)
+ Link("github.com/InterceptSuite/ProxyBridge", destination: URL(string: "https://github.com/InterceptSuite/ProxyBridge")!)
+ .foregroundColor(.accentColor)
+ }
+ }
+ .font(.system(size: 13))
+
+ Text("License: MIT")
+ .font(.system(size: 13))
+ .foregroundColor(.secondary)
+ .padding(.top, 8)
+
+ Button("Close") {
+ dismiss()
+ }
+ .keyboardShortcut(.defaultAction)
+ .padding(.top, 12)
+ }
+ .padding(32)
+ .frame(width: 400, height: 350)
+ }
+}
diff --git a/MacOS/ProxyBridge/ProxyBridge/ProxyBridgeGUI.swift b/MacOS/ProxyBridge/ProxyBridge/ProxyBridgeGUI.swift
index 7369b65..47470d5 100644
--- a/MacOS/ProxyBridge/ProxyBridge/ProxyBridgeGUI.swift
+++ b/MacOS/ProxyBridge/ProxyBridge/ProxyBridgeGUI.swift
@@ -27,6 +27,12 @@ struct ProxyBridgeGUIApp: App {
}
.keyboardShortcut("r", modifiers: .command)
}
+
+ CommandGroup(replacing: .help) {
+ Button("About ProxyBridge") {
+ openAboutWindow()
+ }
+ }
}
Window("Proxy Settings", id: "proxy-settings") {
@@ -41,6 +47,12 @@ struct ProxyBridgeGUIApp: App {
}
.windowResizability(.contentSize)
.defaultPosition(.center)
+
+ Window("About ProxyBridge", id: "about") {
+ AboutView()
+ }
+ .windowResizability(.contentSize)
+ .defaultPosition(.center)
}
private func openProxySettingsWindow() {
@@ -50,6 +62,10 @@ struct ProxyBridgeGUIApp: App {
private func openProxyRulesWindow() {
NSApp.sendAction(#selector(AppDelegate.openProxyRules), to: nil, from: nil)
}
+
+ private func openAboutWindow() {
+ NSApp.sendAction(#selector(AppDelegate.openAbout), to: nil, from: nil)
+ }
}
class AppDelegate: NSObject, NSApplicationDelegate {
@@ -66,11 +82,17 @@ class AppDelegate: NSObject, NSApplicationDelegate {
}
@objc func openProxyRules() {
- openWindow(title: "Proxy Rules", size: NSSize(width: 1000, height: 600), resizable: true) {
+ openWindow(title: "Proxy Rules", size: NSSize(width: 700, height: 500), resizable: true) {
ProxyRulesView(viewModel: AppDelegate.viewModel!)
}
}
+ @objc func openAbout() {
+ openWindow(title: "About ProxyBridge", size: NSSize(width: 400, height: 350)) {
+ AboutView()
+ }
+ }
+
private func openWindow<Content: View>(
title: String,
size: NSSize,