Update NodeList.cpp

This commit is contained in:
Kalila 2021-06-27 04:14:21 -04:00 committed by GitHub
parent 42a4e3b186
commit a217f80ee3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -376,8 +376,8 @@ void NodeList::sendDomainServerCheckIn() {
// 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 (domainSockAddr.getAddress() == QHostAddress::LocalHost
|| hostname == "localhost" && _domainPortAutoDiscovery == true) {
if ((domainSockAddr.getAddress() == QHostAddress::LocalHost || hostname == "localhost")
&& _domainPortAutoDiscovery == true) {
quint16 domainPort = DEFAULT_DOMAIN_SERVER_PORT;
getLocalServerPortFromSharedMemory(DOMAIN_SERVER_LOCAL_PORT_SMEM_KEY, domainPort);