1
0

Update HTTPSClientPool.cpp

This commit is contained in:
Emagi 2024-12-02 21:37:55 -05:00
parent 89fe9bf71b
commit 7a48aad79b

View File

@ -537,13 +537,13 @@ void HTTPSClientPool::pollPeerHealth(const std::string& server, const std::strin
if (auto isprimary = json_tree.get_optional<bool>("peer_primary")) { if (auto isprimary = json_tree.get_optional<bool>("peer_primary")) {
peer_primary = isprimary.get(); peer_primary = isprimary.get();
} }
if (auto peerclientaddr = tree.get_optional<std::string>("peer_client_address")) { if (auto peerclientaddr = json_tree.get_optional<std::string>("peer_client_address")) {
worldAddr = peerclientaddr.get(); worldAddr = peerclientaddr.get();
} }
if (auto peerclient_internaladdr = tree.get_optional<std::string>("peer_client_internal_address")) { if (auto peerclient_internaladdr = json_tree.get_optional<std::string>("peer_client_internal_address")) {
internalWorldAddr = peerclient_internaladdr.get(); internalWorldAddr = peerclient_internaladdr.get();
} }
if (auto peerclientport = tree.get_optional<int16>("peer_client_port")) { if (auto peerclientport = json_tree.get_optional<int16>("peer_client_port")) {
worldPort = peerclientport.get(); worldPort = peerclientport.get();
} }
if(worldAddr.size() > 0 && worldPort > 0) { if(worldAddr.size() > 0 && worldPort > 0) {