mirror of
https://github.com/lubosz/overte.git
synced 2025-08-07 17:41:12 +02:00
Update NodeList.cpp
This commit is contained in:
parent
42a4e3b186
commit
a217f80ee3
1 changed files with 2 additions and 2 deletions
|
@ -376,8 +376,8 @@ void NodeList::sendDomainServerCheckIn() {
|
||||||
// is this our localhost domain-server?
|
// is this our localhost domain-server?
|
||||||
// if so we need to make sure we have an up-to-date local port in case it restarted
|
// if so we need to make sure we have an up-to-date local port in case it restarted
|
||||||
|
|
||||||
if (domainSockAddr.getAddress() == QHostAddress::LocalHost
|
if ((domainSockAddr.getAddress() == QHostAddress::LocalHost || hostname == "localhost")
|
||||||
|| hostname == "localhost" && _domainPortAutoDiscovery == true) {
|
&& _domainPortAutoDiscovery == true) {
|
||||||
|
|
||||||
quint16 domainPort = DEFAULT_DOMAIN_SERVER_PORT;
|
quint16 domainPort = DEFAULT_DOMAIN_SERVER_PORT;
|
||||||
getLocalServerPortFromSharedMemory(DOMAIN_SERVER_LOCAL_PORT_SMEM_KEY, domainPort);
|
getLocalServerPortFromSharedMemory(DOMAIN_SERVER_LOCAL_PORT_SMEM_KEY, domainPort);
|
||||||
|
|
Loading…
Reference in a new issue