Force Proxy to any Windows/MacOS/Linux Application TCP and UDP traffic
C ccybersecurityhttp3httpproxylinuxlinux-proxymacosmacos-appmacos-proxyproxifierproxifier-alternativeproxyclienttcpthick-clientudpwindivertwindows
#103 added cleaer connection and log button
AnoF-Cyber13df74d2b4dc
diff --git a/Windows/gui/Resources/Resources.Designer.cs b/Windows/gui/Resources/Resources.Designer.csindex 17fb676..1c8b2da 100644--- a/Windows/gui/Resources/Resources.Designer.cs+++ b/Windows/gui/Resources/Resources.Designer.cs@@ -185,11 +185,20 @@ namespace ProxyBridge.GUI.Resources {}/// <summary>- /// Looks up a localized string similar to Clear.+ /// Looks up a localized string similar to Clear All Connections./// </summary>- internal static string ButtonClear {+ internal static string ButtonClearAllConnections {get {- return ResourceManager.GetString("ButtonClear", resourceCulture);+ return ResourceManager.GetString("ButtonClearAllConnections", resourceCulture);+ }+ }++ /// <summary>+ /// Looks up a localized string similar to Clear All Logs.+ /// </summary>+ internal static string ButtonClearAllLogs {+ get {+ return ResourceManager.GetString("ButtonClearAllLogs", resourceCulture);}}diff --git a/Windows/gui/Resources/Resources.resx b/Windows/gui/Resources/Resources.resxindex 2f1270f..d27e322 100644--- a/Windows/gui/Resources/Resources.resx+++ b/Windows/gui/Resources/Resources.resx@@ -85,8 +85,11 @@</data><!-- Buttons -->- <data name="ButtonClear" xml:space="preserve">- <value>Clear</value>+ <data name="ButtonClearAllConnections" xml:space="preserve">+ <value>Clear All Connections</value>+ </data>+ <data name="ButtonClearAllLogs" xml:space="preserve">+ <value>Clear All Logs</value></data><data name="ButtonSave" xml:space="preserve"><value>Save</value>diff --git a/Windows/gui/Resources/Resources.zh.resx b/Windows/gui/Resources/Resources.zh.resxindex b093a65..3a85567 100644--- a/Windows/gui/Resources/Resources.zh.resx+++ b/Windows/gui/Resources/Resources.zh.resx@@ -83,8 +83,11 @@</data><!-- Buttons -->- <data name="ButtonClear" xml:space="preserve">- <value>清除</value>+ <data name="ButtonClearAllConnections" xml:space="preserve">+ <value>清除所有连接</value>+ </data>+ <data name="ButtonClearAllLogs" xml:space="preserve">+ <value>清除所有日志</value></data><data name="ButtonSave" xml:space="preserve"><value>保存</value>diff --git a/Windows/gui/Services/Loc.cs b/Windows/gui/Services/Loc.csindex 6668da5..37c24f6 100644--- a/Windows/gui/Services/Loc.cs+++ b/Windows/gui/Services/Loc.cs@@ -63,7 +63,8 @@ public class Loc : INotifyPropertyChangedpublic string TabActivity => Resources.Resources.TabActivity;// Buttons- public string ButtonClear => Resources.Resources.ButtonClear;+ public string ButtonClearAllConnections => Resources.Resources.ButtonClearAllConnections;+ public string ButtonClearAllLogs => Resources.Resources.ButtonClearAllLogs;public string ButtonSave => Resources.Resources.ButtonSave;public string ButtonCancel => Resources.Resources.ButtonCancel;public string ButtonClose => Resources.Resources.ButtonClose;diff --git a/Windows/gui/ViewModels/MainWindowViewModel.cs b/Windows/gui/ViewModels/MainWindowViewModel.csindex c803dd9..783cfd9 100644--- a/Windows/gui/ViewModels/MainWindowViewModel.cs+++ b/Windows/gui/ViewModels/MainWindowViewModel.cs@@ -527,11 +527,9 @@ public class MainWindowViewModel : ViewModelBase}ConnectionsLog = null!;- ConnectionsSearchText = null!;FilteredConnectionsLog = null!;ConnectionsLog = "";- ConnectionsSearchText = "";FilteredConnectionsLog = "";GC.Collect(GC.MaxGeneration, GCCollectionMode.Forced, true, true);@@ -547,7 +545,6 @@ public class MainWindowViewModel : ViewModelBase}ActivityLog = "";- ActivitySearchText = "";FilteredActivityLog = "";GC.Collect(GC.MaxGeneration, GCCollectionMode.Forced, true, true);diff --git a/Windows/gui/Views/MainWindow.axaml b/Windows/gui/Views/MainWindow.axamlindex 9ea2853..fc8db25 100644--- a/Windows/gui/Views/MainWindow.axaml+++ b/Windows/gui/Views/MainWindow.axaml@@ -294,7 +294,7 @@</TextBox.KeyBindings></TextBox><Button Grid.Column="1"- Content="{Binding Loc.ButtonClear}"+ Content="{Binding Loc.ButtonClearAllConnections}"Classes="secondary"Command="{Binding ClearConnectionsLogCommand}"Padding="12,6"/>@@ -330,7 +330,7 @@</TextBox.KeyBindings></TextBox><Button Grid.Column="1"- Content="{Binding Loc.ButtonClear}"+ Content="{Binding Loc.ButtonClearAllLogs}"Classes="secondary"Command="{Binding ClearActivityLogCommand}"Padding="12,6"/>