mirror of
https://github.com/EQEmu/Server.git
synced 2025-12-11 21:01:29 +00:00
Fix for unset local address being sent to login server if not set by xml config
This commit is contained in:
parent
0b4484b36b
commit
93dcd34fa0
@ -277,7 +277,9 @@ void LoginServer::SendNewInfo() {
|
||||
if (Config->LocalAddress.length())
|
||||
strcpy(lsi->local_address, Config->LocalAddress.c_str());
|
||||
else {
|
||||
WorldConfig::SetLocalAddress(IsLegacy ? legacy_client->Handle()->LocalIP() : client->Handle()->LocalIP());
|
||||
auto local_addr = IsLegacy ? legacy_client->Handle()->LocalIP() : client->Handle()->LocalIP();
|
||||
strcpy(lsi->local_address, local_addr.c_str());
|
||||
WorldConfig::SetLocalAddress(lsi->local_address);
|
||||
}
|
||||
SendPacket(pack);
|
||||
delete pack;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user