mirror of
https://github.com/kiwix/kiwix-desktop.git
synced 2025-09-21 02:51:26 -04:00
Merge pull request #1220 from kiwix/feature/libkiwix-sync
Add support for new getBestPublicIp
This commit is contained in:
commit
b2c7e94cf0
@ -88,7 +88,7 @@ void LocalKiwixServer::runOrStopServer()
|
||||
settingsManager->setKiwixServerPort(m_port);
|
||||
settingsManager->setKiwixServerIpAddress(m_ipAddress);
|
||||
mp_server->setAddress(m_ipAddress.toStdString());
|
||||
m_ipAddress = (m_ipAddress != "0.0.0.0") ? m_ipAddress : QString::fromStdString(kiwix::getBestPublicIp(false));
|
||||
m_ipAddress = (m_ipAddress != "0.0.0.0") ? m_ipAddress : QString::fromStdString(kiwix::getBestPublicIp());
|
||||
ui->IpAddress->setText("http://" + m_ipAddress + ":" + QString::number(m_port));
|
||||
ui->IpAddress->setReadOnly(true);
|
||||
if (!mp_server->start()) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user