Codechange: [Network] Use std::string for NetworkAddress' host name

This commit is contained in:
rubidium42
2021-05-04 19:31:12 +02:00
committed by rubidium42
parent dcef3209a6
commit 6c4a65eeb8
3 changed files with 26 additions and 27 deletions

View File

@@ -28,11 +28,11 @@ NetworkUDPSocketHandler::NetworkUDPSocketHandler(NetworkAddressList *bind)
this->bind.push_back(addr);
}
} else {
/* As hostname nullptr and port 0/nullptr don't go well when
/* As an empty hostname and port 0 don't go well when
* resolving it we need to add an address for each of
* the address families we support. */
this->bind.emplace_back(nullptr, 0, AF_INET);
this->bind.emplace_back(nullptr, 0, AF_INET6);
this->bind.emplace_back("", 0, AF_INET);
this->bind.emplace_back("", 0, AF_INET6);
}
}