From be2d65609b95f933dfb1c31c307a1eb44d584f6f Mon Sep 17 00:00:00 2001 From: KimLS Date: Sun, 16 Apr 2017 21:06:05 -0700 Subject: [PATCH] Fix for bug in clearance() world method --- world/client.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/world/client.cpp b/world/client.cpp index 0c1cd9e2a..19c7747b5 100644 --- a/world/client.cpp +++ b/world/client.cpp @@ -1259,7 +1259,9 @@ void Client::Clearance(int8 response) if(local_addr[0]) { zs_addr = local_addr; } else { - if(strcmp(zs->GetIP().c_str(), "127.0.0.1") == 0) + zs_addr = zs->GetIP().c_str(); + + if(strcmp(zs_addr, "127.0.0.1") == 0) { Log(Logs::Detail, Logs::World_Server, "Local zone address was %s, setting local address to: %s", zs_addr, WorldConfig::get()->LocalAddress.c_str()); zs_addr = WorldConfig::get()->LocalAddress.c_str();