Skip to content

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

#101 - Added UDP notes

AnoF-Cyber4334dc37f259
diff --git a/Windows/gui/Resources/Resources.Designer.cs b/Windows/gui/Resources/Resources.Designer.cs
index 1c8b2da..c6de3e7 100644
--- a/Windows/gui/Resources/Resources.Designer.cs
+++ b/Windows/gui/Resources/Resources.Designer.cs
@@ -455,6 +455,7 @@ namespace ProxyBridge.GUI.Resources {
internal static string ProtocolTCP => ResourceManager.GetString("ProtocolTCP", resourceCulture);
internal static string ProtocolUDP => ResourceManager.GetString("ProtocolUDP", resourceCulture);
internal static string ProtocolBoth => ResourceManager.GetString("ProtocolBoth", resourceCulture);
+ internal static string UDPProxyNote => ResourceManager.GetString("UDPProxyNote", resourceCulture);
internal static string ActionProxy => ResourceManager.GetString("ActionProxy", resourceCulture);
internal static string ActionDirect => ResourceManager.GetString("ActionDirect", resourceCulture);
internal static string ActionBlock => ResourceManager.GetString("ActionBlock", resourceCulture);
diff --git a/Windows/gui/Resources/Resources.resx b/Windows/gui/Resources/Resources.resx
index d27e322..c3f2519 100644
--- a/Windows/gui/Resources/Resources.resx
+++ b/Windows/gui/Resources/Resources.resx
@@ -270,6 +270,9 @@
<data name="ProtocolBoth" xml:space="preserve">
<value>Both (TCP + UDP)</value>
</data>
+ <data name="UDPProxyNote" xml:space="preserve">
+ <value>⚠ UDP only works with SOCKS5 proxy. Not all SOCKS5 proxies support UDP by default. SOCKS5 UDP support does not guarantee QUIC or HTTP/3 support, verify your proxy supports these protocols separately.</value>
+ </data>
<data name="ActionProxy" xml:space="preserve">
<value>PROXY</value>
</data>
diff --git a/Windows/gui/Resources/Resources.zh.resx b/Windows/gui/Resources/Resources.zh.resx
index 3a85567..16e9c96 100644
--- a/Windows/gui/Resources/Resources.zh.resx
+++ b/Windows/gui/Resources/Resources.zh.resx
@@ -271,6 +271,9 @@
<data name="ProtocolBoth" xml:space="preserve">
<value>两者 (TCP + UDP)</value>
</data>
+ <data name="UDPProxyNote" xml:space="preserve">
+ <value>⚠ UDP 仅支持 SOCKS5 代理。并非所有 SOCKS5 代理默认支持 UDP。SOCKS5 UDP 支持并不保证支持 QUIC 或 HTTP/3 —— 请单独确认您的代理是否支持这些协议。</value>
+ </data>
<data name="ActionProxy" xml:space="preserve">
<value>代理</value>
</data>
diff --git a/Windows/gui/Services/Loc.cs b/Windows/gui/Services/Loc.cs
index 37c24f6..42ddffd 100644
--- a/Windows/gui/Services/Loc.cs
+++ b/Windows/gui/Services/Loc.cs
@@ -132,6 +132,7 @@ public class Loc : INotifyPropertyChanged
public string ProtocolTCP => Resources.Resources.ProtocolTCP;
public string ProtocolUDP => Resources.Resources.ProtocolUDP;
public string ProtocolBoth => Resources.Resources.ProtocolBoth;
+ public string UDPProxyNote => Resources.Resources.UDPProxyNote;
public string ActionProxy => Resources.Resources.ActionProxy;
public string ActionDirect => Resources.Resources.ActionDirect;
public string ActionBlock => Resources.Resources.ActionBlock;
diff --git a/Windows/gui/Views/ProxyRulesWindow.axaml b/Windows/gui/Views/ProxyRulesWindow.axaml
index 5e53546..d0156f5 100644
--- a/Windows/gui/Views/ProxyRulesWindow.axaml
+++ b/Windows/gui/Views/ProxyRulesWindow.axaml
@@ -283,6 +283,11 @@
<ComboBoxItem Content="{Binding Loc.ProtocolUDP}" Tag="UDP"/>
<ComboBoxItem Content="{Binding Loc.ProtocolBoth}" Tag="BOTH"/>
</ComboBox>
+ <TextBlock Text="{Binding Loc.UDPProxyNote}"
+ FontSize="11"
+ Foreground="#FFCC9900"
+ TextWrapping="Wrap"
+ Margin="0,4,0,0"/>
</StackPanel>
<!-- Action Section -->
diff --git a/Windows/gui/Views/ProxySettingsWindow.axaml b/Windows/gui/Views/ProxySettingsWindow.axaml
index 7d8adec..f749ca2 100644
--- a/Windows/gui/Views/ProxySettingsWindow.axaml
+++ b/Windows/gui/Views/ProxySettingsWindow.axaml
@@ -177,6 +177,11 @@
<ComboBoxItem Content="SOCKS5" Tag="SOCKS5"/>
<ComboBoxItem Content="HTTP" Tag="HTTP"/>
</ComboBox>
+ <TextBlock Text="{Binding Loc.UDPProxyNote}"
+ FontSize="11"
+ Foreground="#FFCC9900"
+ TextWrapping="Wrap"
+ Margin="0,4,0,0"/>
</StackPanel>
<StackPanel Spacing="6">