diff --git a/src/common/network/udp/Socket.cpp b/src/common/network/udp/Socket.cpp index 2224a185..7ebd815a 100644 --- a/src/common/network/udp/Socket.cpp +++ b/src/common/network/udp/Socket.cpp @@ -629,7 +629,7 @@ int Socket::lookup(const std::string& hostname, uint16_t port, sockaddr_storage& /// /// /// -/// Zero if no error during lookup, otherwise error. +/// Textual IP address for the local network interface. std::string Socket::getLocalAddress() { struct ifaddrs *ifaddr, *ifa; diff --git a/src/host/network/RESTAPI.cpp b/src/host/network/RESTAPI.cpp index 863046f8..2ad78b39 100644 --- a/src/host/network/RESTAPI.cpp +++ b/src/host/network/RESTAPI.cpp @@ -1213,7 +1213,7 @@ void RESTAPI::restAPI_PutRegisterCCVC(const HTTPPayload& request, HTTPPayload& r if (voiceCh.address() == "0.0.0.0") { voiceCh.address(restAddress); } - + if (voiceCh.port() == 0U || voiceCh.port() == REST_API_DEFAULT_PORT) { voiceCh.port(restPort); }