mirror of
https://github.com/Qv2ray/Qv2ray.git
synced 2025-05-20 02:40:20 +08:00
Update StreamSettingsWidget.cpp
This commit is contained in:
parent
92128bb0fb
commit
0160bdda58
@ -18,19 +18,17 @@ void StreamSettingsWidget::SetStreamObject(StreamSettingsObject sso)
|
|||||||
stream = sso;
|
stream = sso;
|
||||||
//
|
//
|
||||||
transportCombo->setCurrentText(stream.network);
|
transportCombo->setCurrentText(stream.network);
|
||||||
|
// TLS
|
||||||
tlsCB->setChecked(stream.security == "tls");
|
tlsCB->setChecked(stream.security == "tls");
|
||||||
|
serverNameTxt->setText(stream.tlsSettings.serverName);
|
||||||
|
allowInsecureCB->setChecked(stream.tlsSettings.allowInsecure);
|
||||||
|
alpnTxt->setPlainText(stream.tlsSettings.alpn.join(NEWLINE));
|
||||||
// TCP
|
// TCP
|
||||||
tcpHeaderTypeCB->setCurrentText(stream.tcpSettings.header.type);
|
tcpHeaderTypeCB->setCurrentText(stream.tcpSettings.header.type);
|
||||||
tcpRequestTxt->setPlainText(StructToJsonString(stream.tcpSettings.header.request));
|
tcpRequestTxt->setPlainText(StructToJsonString(stream.tcpSettings.header.request));
|
||||||
tcpRespTxt->setPlainText(StructToJsonString(stream.tcpSettings.header.response));
|
tcpRespTxt->setPlainText(StructToJsonString(stream.tcpSettings.header.response));
|
||||||
// HTTP
|
// HTTP
|
||||||
QString allHosts;
|
httpHostTxt->setPlainText(stream.httpSettings.host.join(NEWLINE));
|
||||||
|
|
||||||
for (auto host : stream.httpSettings.host) {
|
|
||||||
allHosts = allHosts + host + "\r\n";
|
|
||||||
}
|
|
||||||
|
|
||||||
httpHostTxt->setPlainText(allHosts);
|
|
||||||
httpPathTxt->setText(stream.httpSettings.path);
|
httpPathTxt->setText(stream.httpSettings.path);
|
||||||
// WS
|
// WS
|
||||||
wsPathTxt->setText(stream.wsSettings.path);
|
wsPathTxt->setText(stream.wsSettings.path);
|
||||||
|
Loading…
Reference in New Issue
Block a user