diff --git a/source/WorldServer/Web/HTTPSClientPool.cpp b/source/WorldServer/Web/HTTPSClientPool.cpp index 3189bcd..e9185fe 100644 --- a/source/WorldServer/Web/HTTPSClientPool.cpp +++ b/source/WorldServer/Web/HTTPSClientPool.cpp @@ -545,24 +545,22 @@ void HTTPSClientPool::pollPeerHealth(const std::string& server, const std::strin std::string worldAddr(""), internalWorldAddr(""), clientIP(""); int16 worldPort = 0; try { - auto webStatusTree = json_tree.get_child("WebStatus"); - - if (auto status = webStatusTree.get_optional("world_status")) { + if (auto status = json_tree.get_optional("world_status")) { online_status = status.get(); } - if (auto priority = webStatusTree.get_optional("peer_priority")) { + if (auto priority = json_tree.get_optional("peer_priority")) { peer_priority = priority.get(); } - if (auto isprimary = webStatusTree.get_optional("peer_primary")) { + if (auto isprimary = json_tree.get_optional("peer_primary")) { peer_primary = isprimary.get(); } - if (auto peerclientaddr = webStatusTree.get_optional("peer_client_address")) { + if (auto peerclientaddr = json_tree.get_optional("peer_client_address")) { worldAddr = peerclientaddr.get(); } - if (auto peerclient_internaladdr = webStatusTree.get_optional("peer_client_internal_address")) { + if (auto peerclient_internaladdr = json_tree.get_optional("peer_client_internal_address")) { internalWorldAddr = peerclient_internaladdr.get(); } - if (auto peerclientport = webStatusTree.get_optional("peer_client_port")) { + if (auto peerclientport = json_tree.get_optional("peer_client_port")) { worldPort = peerclientport.get(); } if(worldAddr.size() > 0 && worldPort > 0) {