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