Fix loopback
This commit is contained in:
parent
546c60c7c7
commit
625461e6ad
@ -74,7 +74,7 @@ namespace Components
|
||||
void* cxt = Game::UI_GetContext(a1);
|
||||
|
||||
std::string addressText = Network::Address(*Game::connectedHost).GetString();
|
||||
if (addressText == "0.0.0.0:0") addressText = "Listen Server";
|
||||
if (addressText == "0.0.0.0:0" || addressText == "loopback") addressText = "Listen Server";
|
||||
|
||||
// get x positions
|
||||
float fontSize = 0.35f;
|
||||
|
@ -693,7 +693,7 @@ namespace Components
|
||||
if (Dvar::Var("cl_ingame").Get<bool>())
|
||||
{
|
||||
std::string addressText = Network::Address(*Game::connectedHost).GetString();
|
||||
if (addressText != "0.0.0.0:0")
|
||||
if (addressText != "0.0.0.0:0" && addressText != "loopback")
|
||||
{
|
||||
ServerList::StoreFavourite(addressText);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user