Skip to content

Commit

Permalink
fixup! Add IP Address to local settings and make IP Addresses in Comb…
Browse files Browse the repository at this point in the history
…obox sorted
  • Loading branch information
juuz0 committed Dec 11, 2021
1 parent d4bffb6 commit ff3ca6a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/localkiwixserver.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ void LocalKiwixServer::runOrStopServer()
m_ipAddress = ui->IpChooser->currentText();
settingsManager->setKiwixServerPort(m_port);
settingsManager->setKiwixServerIpAddress(m_ipAddress);
m_ipAddress = (m_ipAddress != "0.0.0.0") ? ui->IpChooser->currentText() : QString::fromStdString(mp_server->getBestPublicIp());
m_ipAddress = (m_ipAddress != "0.0.0.0") ? ui->IpChooser->currentText() : QString::fromStdString(kiwix::getBestPublicIp());
mp_server->setAddress(ui->IpChooser->currentText().toStdString());
ui->IpAddress->setText("http://" + m_ipAddress + ":" + QString::number(m_port));
ui->IpAddress->setReadOnly(true);
Expand Down

0 comments on commit ff3ca6a

Please sign in to comment.