fix: fix pipedald port parameter

This commit is contained in:
FoolHen
2026-05-31 15:54:36 +02:00
parent b8b68e13de
commit 5b77144d91
2 changed files with 11 additions and 3 deletions
+9 -1
View File
@@ -75,7 +75,15 @@ public:
void SetSocketServerEndpoint(const std::string &endpoint)
{
this->socketServerAddress_ = endpoint;
if (endpoint.find(':') == std::string::npos)
{
// Only a port number was provided, use default address.
this->socketServerAddress_ = "0.0.0.0:" + endpoint;
}
else
{
this->socketServerAddress_ = endpoint;
}
}
bool GetAccessPointGateway(boost::asio::ip::network_v4 *pGatewayNetwork) const {