diff --git a/src/ui/w_PreferencesWindow.cpp b/src/ui/w_PreferencesWindow.cpp
index 6cf8d5dc..4ff55bbb 100644
--- a/src/ui/w_PreferencesWindow.cpp
+++ b/src/ui/w_PreferencesWindow.cpp
@@ -1244,3 +1244,9 @@ void PreferencesWindow::on_tproxyMode_currentTextChanged(const QString &arg1)
NEEDRESTART
CurrentConfig.inboundConfig.tproxy_mode = arg1;
}
+
+void PreferencesWindow::on_tproxyListenAddr_textEdited(const QString &arg1)
+{
+ NEEDRESTART
+ CurrentConfig.inboundConfig.tproxy_ip = arg1;
+}
diff --git a/src/ui/w_PreferencesWindow.hpp b/src/ui/w_PreferencesWindow.hpp
index 1b2b48f8..76c4f8ff 100644
--- a/src/ui/w_PreferencesWindow.hpp
+++ b/src/ui/w_PreferencesWindow.hpp
@@ -190,6 +190,8 @@ class PreferencesWindow
void on_tproxyMode_currentTextChanged(const QString &arg1);
+ void on_tproxyListenAddr_textEdited(const QString &arg1);
+
private:
//
RouteSettingsMatrixWidget *routeSettingsWidget;
diff --git a/src/ui/w_PreferencesWindow.ui b/src/ui/w_PreferencesWindow.ui
index 96c40f33..68428b0f 100644
--- a/src/ui/w_PreferencesWindow.ui
+++ b/src/ui/w_PreferencesWindow.ui
@@ -20,6 +20,16 @@
true
+ -
+
+
+ Qt::Horizontal
+
+
+ QDialogButtonBox::Cancel|QDialogButtonBox::Ok
+
+
+
-
@@ -674,8 +684,8 @@ Custom DNS Settings
0
0
- 808
- 473
+ 794
+ 484
@@ -895,78 +905,116 @@ Custom DNS Settings
-
-
- -
-
-
- Transparent Proxy Settings
-
-
- true
-
-
- false
-
-
-
-
-
-
-
+
-
+
+
+ Transparent Proxy Settings
+
+
+ true
+
+
+ false
+
+
+
-
Listening Address
- -
-
-
- 127.0.0.1
-
-
+
-
+
+
-
+
+
+ 127.0.0.1
+
+
+
+ -
+
+
+ Port
+
+
+
+ -
+
+
+ 1
+
+
+ 65535
+
+
+ 12345
+
+
+
+
- -
-
+
-
+
- Port
+ Network Options
- -
-
-
- 1
-
-
- 65535
-
-
- 12345
-
-
+
-
+
+
-
+
+
+ TCP
+
+
+
+ -
+
+
+ UDP
+
+
+
+ -
+
+
+ Qt::Vertical
+
+
+
+ -
+
+
+ Follow Redirect
+
+
+
+ -
+
+
+ Qt::Horizontal
+
+
+
+ 40
+ 20
+
+
+
+
+
- -
-
+
-
+
- TCP
+ Mode
- -
-
-
- UDP
-
-
-
- -
-
-
- Follow Redirect
-
-
-
- -
+
-
@@ -986,23 +1034,10 @@ Custom DNS Settings
- -
-
-
-
- 0
- 0
-
-
-
- Mode
-
-
-
-
-
-
+
+
+
-
@@ -1893,9 +1928,6 @@ Custom DNS Settings
true
-
-
-
@@ -1920,16 +1952,6 @@ Custom DNS Settings
- -
-
-
- Qt::Horizontal
-
-
- QDialogButtonBox::Cancel|QDialogButtonBox::Ok
-
-
-
@@ -1957,12 +1979,6 @@ Custom DNS Settings
httpAuthCB
httpAuthUsernameTxt
httpAuthPasswordTxt
- tproxGroupBox
- tproxyListenAddr
- tProxyPort
- tproxyEnableTCP
- tproxyEnableUDP
- tproxyFollowRedirect
proxyDefaultCb
bypassCNCb
localDNSCb