feat: update domain list handling to improve EntityServer query process
This commit is contained in:
@@ -1094,18 +1094,13 @@ void OverteClient::handleDomainListReply(const char* data, size_t len) {
|
|||||||
sendEntityQuery();
|
sendEntityQuery();
|
||||||
} else {
|
} else {
|
||||||
std::cout << "[OverteClient] Warning: No EntityServer found in assignment client list" << std::endl;
|
std::cout << "[OverteClient] Warning: No EntityServer found in assignment client list" << std::endl;
|
||||||
std::cout << "[OverteClient] This might be expected for non-authenticated connections." << std::endl;
|
std::cout << "[OverteClient] DomainList doesn't include assignment clients for Agent nodes." << std::endl;
|
||||||
|
|
||||||
// The first DomainList reply might not include assignment clients
|
// Try common EntityServer ports (based on web UI showing port 33237)
|
||||||
// Request an updated DomainList now that the server knows our interests
|
std::cout << "[OverteClient] Trying EntityQuery to common EntityServer ports..." << std::endl;
|
||||||
std::cout << "[OverteClient] Requesting updated DomainList to get assignment clients..." << std::endl;
|
for (uint16_t port : {33237, 33238, 33239, 40103, 48000, 48001}) {
|
||||||
sendDomainListRequest();
|
sendEntityQuery(port);
|
||||||
|
}
|
||||||
// Modern Overte: also try sending EntityQuery directly to domain server
|
|
||||||
// The domain server may forward it to the EntityServer or respond directly
|
|
||||||
std::cout << "[OverteClient] Sending EntityQuery to domain server as fallback..." << std::endl;
|
|
||||||
m_entityServerPort = 0; // Will use domain server address
|
|
||||||
sendEntityQuery();
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user