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;
|
||||
//
|
||||
transportCombo->setCurrentText(stream.network);
|
||||
// TLS
|
||||
tlsCB->setChecked(stream.security == "tls");
|
||||
serverNameTxt->setText(stream.tlsSettings.serverName);
|
||||
allowInsecureCB->setChecked(stream.tlsSettings.allowInsecure);
|
||||
alpnTxt->setPlainText(stream.tlsSettings.alpn.join(NEWLINE));
|
||||
// TCP
|
||||
tcpHeaderTypeCB->setCurrentText(stream.tcpSettings.header.type);
|
||||
tcpRequestTxt->setPlainText(StructToJsonString(stream.tcpSettings.header.request));
|
||||
tcpRespTxt->setPlainText(StructToJsonString(stream.tcpSettings.header.response));
|
||||
// HTTP
|
||||
QString allHosts;
|
||||
|
||||
for (auto host : stream.httpSettings.host) {
|
||||
allHosts = allHosts + host + "\r\n";
|
||||
}
|
||||
|
||||
httpHostTxt->setPlainText(allHosts);
|
||||
httpHostTxt->setPlainText(stream.httpSettings.host.join(NEWLINE));
|
||||
httpPathTxt->setText(stream.httpSettings.path);
|
||||
// WS
|
||||
wsPathTxt->setText(stream.wsSettings.path);
|
||||
|
Loading…
Reference in New Issue
Block a user