[Friends] Consider localhost has a bad address

This commit is contained in:
momo5502 2017-01-30 18:09:08 +01:00
parent 678167ca38
commit 2e6f8b1f9d

View File

@ -339,6 +339,9 @@ namespace Components
entry->serverName.clear();
}
// Block localhost
if(entry->server.getType() == Game::NA_LOOPBACK) entry->server.setType(Game::NA_BAD);
if (entry->server.getType() != Game::NA_BAD && entry->server != oldAddress)
{
Node::AddNode(entry->server);