Use make_address instead of from_string to fix build

This commit is contained in:
emeric
2025-02-10 17:38:12 +01:00
parent 32b366dda7
commit b6f787dadb
3 changed files with 4 additions and 4 deletions
+1 -1
View File
@@ -448,7 +448,7 @@ namespace lms::api::subsonic
if (!apiKey && !password)
throw RequiredParameterMissingError{ "apiKey" };
const auto clientAddress{ boost::asio::ip::address::from_string(request.clientAddress()) };
const auto clientAddress{ boost::asio::ip::make_address(request.clientAddress()) };
const std::string authToken{ apiKey ? *apiKey : decodePasswordIfNeeded(*password) };
const auto authResult{ core::Service<auth::IAuthTokenService>::get()->processAuthToken("subsonic", clientAddress, authToken) };