mirror of
https://github.com/joyieldInc/predixy.git
synced 2025-12-24 22:46:41 +08:00
Merge a5fd715245 into ca1630a6b4
This commit is contained in:
commit
47a30ce8e0
@ -113,9 +113,7 @@ void ClusterServerPool::handleResponse(Handler* h, ConnectConnection* s, Request
|
||||
auto it = mServs.find(addr);
|
||||
Server* serv = it == mServs.end() ? nullptr : it->second;
|
||||
if (!serv) {
|
||||
if (strstr(p.flags().data(), "myself")) {
|
||||
serv = s->server();
|
||||
} else if (const char* t = strchr(p.addr().data(), '@')) {
|
||||
if (const char* t = strchr(p.addr().data(), '@')) {
|
||||
addr = String(p.addr().data(), t - p.addr().data());
|
||||
it = mServs.find(addr);
|
||||
serv = it == mServs.end() ? nullptr : it->second;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user