Merge pull request #9509 from sepalani/net-tab

NetworkWidget: Add hostname to SSL table
This commit is contained in:
Léo Lam 2021-02-14 02:00:25 +01:00 committed by GitHub
commit 8f25b0426e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 2 deletions

View File

@ -243,7 +243,9 @@ void NetworkWidget::Update()
s32 host_fd = -1;
if (IOS::HLE::IsSSLIDValid(ssl_id))
{
host_fd = IOS::HLE::NetSSLDevice::_SSL[ssl_id].hostfd;
const auto& ssl = IOS::HLE::NetSSLDevice::_SSL[ssl_id];
host_fd = ssl.hostfd;
m_ssl_table->setItem(ssl_id, 5, new QTableWidgetItem(QString::fromStdString(ssl.hostname)));
}
m_ssl_table->setItem(ssl_id, 0, new QTableWidgetItem(QString::number(ssl_id)));
m_ssl_table->setItem(ssl_id, 1, GetSocketDomain(host_fd));
@ -292,7 +294,7 @@ QGroupBox* NetworkWidget::CreateSSLContextGroup()
ssl_context_group->setLayout(ssl_context_layout);
m_ssl_table = new QTableWidget();
QStringList header{tr("ID"), tr("Domain"), tr("Type"), tr("State"), tr("Name")};
QStringList header{tr("ID"), tr("Domain"), tr("Type"), tr("State"), tr("Name"), tr("Hostname")};
m_ssl_table->setColumnCount(header.size());
m_ssl_table->setHorizontalHeaderLabels(header);