From 625461e6adb4ec2c3e3f0aee1bedd4eea125b192 Mon Sep 17 00:00:00 2001 From: momo5502 Date: Wed, 15 Jun 2016 12:38:06 +0200 Subject: [PATCH] Fix loopback --- src/Components/Modules/ServerInfo.cpp | 2 +- src/Components/Modules/ServerList.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Components/Modules/ServerInfo.cpp b/src/Components/Modules/ServerInfo.cpp index 52fcb18a..fa2637d7 100644 --- a/src/Components/Modules/ServerInfo.cpp +++ b/src/Components/Modules/ServerInfo.cpp @@ -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; diff --git a/src/Components/Modules/ServerList.cpp b/src/Components/Modules/ServerList.cpp index a786cb9f..3d21afb3 100644 --- a/src/Components/Modules/ServerList.cpp +++ b/src/Components/Modules/ServerList.cpp @@ -693,7 +693,7 @@ namespace Components if (Dvar::Var("cl_ingame").Get()) { 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); }