RCon hotfix to prevent listen servers from being stuck on Awaiting challenge...
This commit is contained in:
parent
f534a09e35
commit
781fb5b4f7
@ -121,7 +121,7 @@ namespace Components
|
|||||||
}
|
}
|
||||||
bool Network::Address::isValid()
|
bool Network::Address::isValid()
|
||||||
{
|
{
|
||||||
return (this->getType() != Game::netadrtype_t::NA_BAD && this->getType() >= Game::netadrtype_t::NA_BOT && this->getType() <= Game::netadrtype_t::NA_IP && this->address.ip.full != 0);
|
return (this->getType() != Game::netadrtype_t::NA_BAD && this->getType() >= Game::netadrtype_t::NA_BOT && this->getType() <= Game::netadrtype_t::NA_IP);
|
||||||
}
|
}
|
||||||
void Network::Handle(const std::string& packet, Utils::Slot<Network::Callback> callback)
|
void Network::Handle(const std::string& packet, Utils::Slot<Network::Callback> callback)
|
||||||
{
|
{
|
||||||
|
@ -29,7 +29,7 @@ namespace Components
|
|||||||
if (!RCon::Password.empty())
|
if (!RCon::Password.empty())
|
||||||
{
|
{
|
||||||
Network::Address target(addr);
|
Network::Address target(addr);
|
||||||
if (!target.isValid())
|
if (!target.isValid() || target.getIP().full == 0)
|
||||||
{
|
{
|
||||||
target = Party::Target();
|
target = Party::Target();
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user