diff options
author | Andrei Karas <akaras@inbox.ru> | 2020-02-23 10:07:46 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2020-03-13 05:57:10 +0300 |
commit | b0c696eaab501391512b08826c3c9a52023e2be7 (patch) | |
tree | 1048b2782bc209ea2764a63853ad373998736522 /src/net | |
parent | 1e2a88e975019929c4c7e3154537865cc09550a6 (diff) | |
download | mv-b0c696eaab501391512b08826c3c9a52023e2be7.tar.gz mv-b0c696eaab501391512b08826c3c9a52023e2be7.tar.bz2 mv-b0c696eaab501391512b08826c3c9a52023e2be7.tar.xz mv-b0c696eaab501391512b08826c3c9a52023e2be7.zip |
Fix alternate ip address for char and map servers [ci skip]
Diffstat (limited to 'src/net')
-rw-r--r-- | src/net/ea/loginhandler.cpp | 1 | ||||
-rw-r--r-- | src/net/tmwa/charserverrecv.cpp | 1 |
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; |