Balancer input ignores replies of local addresses to prevent loops, load balancer itself updated to not sent self-answers to servers.

This commit is contained in:
Thulinma 2018-07-09 11:23:21 +02:00
parent eeffba15ad
commit 5b059dcf6f
3 changed files with 13 additions and 1 deletions

View file

@ -13,7 +13,7 @@ int main(int argc, char ** argv){
}
std::cout << argv[i] << " -> " << u.getUrl() << std::endl;
std::cout << "Protocol: " << u.protocol << std::endl;
std::cout << "Host: " << u.host << std::endl;
std::cout << "Host: " << u.host << " (Local: " << (Socket::isLocalhost(u.host)?"Yes":"No") << ")" << std::endl;
std::cout << "Port: " << u.getPort() << std::endl;
std::cout << "Path: " << u.path << std::endl;
std::cout << "Query: " << u.args << std::endl;