mirror of
https://github.com/MatsuriDayo/nekoray.git
synced 2025-12-17 20:44:38 +03:00
add padding for mux
This commit is contained in:
@@ -651,6 +651,7 @@ namespace NekoGui {
|
||||
auto muxObj = QJsonObject{
|
||||
{"enabled", true},
|
||||
{"protocol", dataStore->mux_protocol},
|
||||
{"padding", dataStore->mux_padding},
|
||||
{"max_streams", dataStore->mux_concurrency},
|
||||
};
|
||||
outbound["multiplex"] = muxObj;
|
||||
|
||||
@@ -237,6 +237,7 @@ namespace NekoGui {
|
||||
_add(new configItem("log_level", &log_level, itemType::string));
|
||||
_add(new configItem("mux_protocol", &mux_protocol, itemType::string));
|
||||
_add(new configItem("mux_concurrency", &mux_concurrency, itemType::integer));
|
||||
_add(new configItem("mux_padding", &mux_padding, itemType::boolean));
|
||||
_add(new configItem("mux_default_on", &mux_default_on, itemType::boolean));
|
||||
_add(new configItem("traffic_loop_interval", &traffic_loop_interval, itemType::integer));
|
||||
_add(new configItem("test_concurrent", &test_concurrent, itemType::integer));
|
||||
|
||||
@@ -102,6 +102,7 @@ namespace NekoGui {
|
||||
bool connection_statistics = false;
|
||||
int current_group = 0; // group id
|
||||
QString mux_protocol = "";
|
||||
bool mux_padding = false;
|
||||
int mux_concurrency = 8;
|
||||
bool mux_default_on = false;
|
||||
QString theme = "0";
|
||||
|
||||
@@ -66,6 +66,7 @@ DialogBasicSettings::DialogBasicSettings(QWidget *parent)
|
||||
} else {
|
||||
ui->log_level->addItems({"debug", "info", "warning", "none"});
|
||||
ui->mux_protocol->hide();
|
||||
ui->mux_padding->hide();
|
||||
}
|
||||
|
||||
refresh_auth();
|
||||
@@ -240,6 +241,7 @@ DialogBasicSettings::DialogBasicSettings(QWidget *parent)
|
||||
// Mux
|
||||
D_LOAD_INT(mux_concurrency)
|
||||
D_LOAD_COMBO_STRING(mux_protocol)
|
||||
D_LOAD_BOOL(mux_padding)
|
||||
D_LOAD_BOOL(mux_default_on)
|
||||
|
||||
// Security
|
||||
@@ -309,6 +311,7 @@ void DialogBasicSettings::accept() {
|
||||
// Mux
|
||||
D_SAVE_INT(mux_concurrency)
|
||||
D_SAVE_COMBO_STRING(mux_protocol)
|
||||
D_SAVE_BOOL(mux_padding)
|
||||
D_SAVE_BOOL(mux_default_on)
|
||||
|
||||
// Security
|
||||
|
||||
@@ -6,8 +6,8 @@
|
||||
<rect>
|
||||
<x>0</x>
|
||||
<y>0</y>
|
||||
<width>600</width>
|
||||
<height>400</height>
|
||||
<width>650</width>
|
||||
<height>500</height>
|
||||
</rect>
|
||||
</property>
|
||||
<property name="sizePolicy">
|
||||
@@ -33,7 +33,7 @@
|
||||
<item row="2" column="3">
|
||||
<widget class="QTabWidget" name="tabWidget">
|
||||
<property name="currentIndex">
|
||||
<number>0</number>
|
||||
<number>3</number>
|
||||
</property>
|
||||
<widget class="QWidget" name="tab_1">
|
||||
<attribute name="title">
|
||||
@@ -603,6 +603,13 @@
|
||||
<item>
|
||||
<widget class="QLineEdit" name="mux_concurrency"/>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QCheckBox" name="mux_padding">
|
||||
<property name="text">
|
||||
<string>padding</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QCheckBox" name="mux_default_on">
|
||||
<property name="text">
|
||||
@@ -694,8 +701,8 @@
|
||||
<rect>
|
||||
<x>0</x>
|
||||
<y>0</y>
|
||||
<width>568</width>
|
||||
<height>297</height>
|
||||
<width>515</width>
|
||||
<height>315</height>
|
||||
</rect>
|
||||
</property>
|
||||
<layout class="QVBoxLayout" name="verticalLayout_6">
|
||||
|
||||
Reference in New Issue
Block a user