mirror of
https://github.com/Qv2ray/Qv2ray.git
synced 2025-05-19 18:30:34 +08:00
Merge branch 'dev' of github.com:Qv2ray/Qv2ray into tproxy
This commit is contained in:
commit
b72dfbd32c
@ -1 +1 @@
|
||||
5264
|
||||
5266
|
@ -118,6 +118,7 @@ OUTBOUND OutboundEditor::GenerateConnectionJson()
|
||||
}
|
||||
else
|
||||
{
|
||||
streaming = QJsonObject();
|
||||
bool processed = false;
|
||||
for (const auto &plugin : pluginWidgets)
|
||||
{
|
||||
@ -204,6 +205,8 @@ void OutboundEditor::ReloadGUI()
|
||||
const auto &plugin = pluginWidgets.value(index);
|
||||
if (plugin.first.protocol == outboundType)
|
||||
{
|
||||
useFPCB->setEnabled(false);
|
||||
useFPCB->setToolTip(tr("Forward proxy has been disabled when using plugin outbound"));
|
||||
plugin.second->SetContent(settings);
|
||||
outBoundTypeCombo->setCurrentIndex(index);
|
||||
auto [_address, _port] = plugin.second->GetHostInfo();
|
||||
@ -284,12 +287,14 @@ void OutboundEditor::on_alterLineEdit_valueChanged(int arg1)
|
||||
void OutboundEditor::on_useFPCB_stateChanged(int arg1)
|
||||
{
|
||||
useForwardProxy = arg1 == Qt::Checked;
|
||||
streamSettingsWidget->setEnabled(!useForwardProxy);
|
||||
}
|
||||
|
||||
void OutboundEditor::on_outBoundTypeCombo_currentIndexChanged(int index)
|
||||
{
|
||||
// 0, 1, 2 as built-in vmess, ss, socks
|
||||
outboundTypeStackView->setCurrentIndex(index);
|
||||
streamSettingsWidget->setEnabled(index < 3);
|
||||
if (index < 3)
|
||||
{
|
||||
outboundType = outBoundTypeCombo->currentText().toLower();
|
||||
|
@ -30,7 +30,7 @@
|
||||
</property>
|
||||
<layout class="QGridLayout" name="gridLayout_4" columnstretch="2,4">
|
||||
<item row="1" column="1">
|
||||
<widget class="QGroupBox" name="groupBox_2">
|
||||
<widget class="QGroupBox" name="streamSettingsGroupBox">
|
||||
<property name="title">
|
||||
<string>Stream Settings</string>
|
||||
</property>
|
||||
|
Loading…
Reference in New Issue
Block a user