summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2020-02-23 10:07:46 +0300
committerAndrei Karas <akaras@inbox.ru>2020-03-13 05:57:10 +0300
commitb0c696eaab501391512b08826c3c9a52023e2be7 (patch)
tree1048b2782bc209ea2764a63853ad373998736522 /src
parent1e2a88e975019929c4c7e3154537865cc09550a6 (diff)
downloadplus-b0c696eaab501391512b08826c3c9a52023e2be7.tar.gz
plus-b0c696eaab501391512b08826c3c9a52023e2be7.tar.bz2
plus-b0c696eaab501391512b08826c3c9a52023e2be7.tar.xz
plus-b0c696eaab501391512b08826c3c9a52023e2be7.zip
Fix alternate ip address for char and map servers [ci skip]
Diffstat (limited to 'src')
-rw-r--r--src/net/ea/loginhandler.cpp1
-rw-r--r--src/net/tmwa/charserverrecv.cpp1
2 files changed, 2 insertions, 0 deletions
diff --git a/src/net/ea/loginhandler.cpp b/src/net/ea/loginhandler.cpp
index 103707a35..88b085aa3 100644
--- a/src/net/ea/loginhandler.cpp
+++ b/src/net/ea/loginhandler.cpp
@@ -97,6 +97,7 @@ void LoginHandler::chooseServer(const unsigned int server,
}
charServer->port = LoginRecv::mWorlds[server]->port;
}
+ charServer->althostname = mServer.althostname;
client->setState(State::UPDATE);
}
diff --git a/src/net/tmwa/charserverrecv.cpp b/src/net/tmwa/charserverrecv.cpp
index 5d772a4bb..8074fa458 100644
--- a/src/net/tmwa/charserverrecv.cpp
+++ b/src/net/tmwa/charserverrecv.cpp
@@ -216,6 +216,7 @@ void CharServerRecv::processCharMapInfo(Net::MessageIn &restrict msg)
server.hostname = ipToString(msg.readInt32("ip address"));
}
server.port = msg.readInt16("port");
+ server.althostname = charServer.althostname;
// Prevent the selected local player from being deleted
localPlayer = Net::CharServerHandler::mSelectedCharacter->dummy;