mirror of
https://github.com/2revoemag/PSF-BotServer.git
synced 2026-07-15 08:24:39 +00:00
Fix forwarding message to use IP instead of host name
INetAddress#getHostString can return both an IP address and a host name depending on how thclass is initialized.
This commit is contained in:
parent
4dd24ff01a
commit
ed4a52025c
1 changed files with 1 additions and 1 deletions
|
|
@ -128,7 +128,7 @@ class LoginSessionActor extends Actor with MDCContextAware {
|
||||||
|
|
||||||
case ConnectToWorldRequestMessage(name, _, _, _, _, _, _) =>
|
case ConnectToWorldRequestMessage(name, _, _, _, _, _, _) =>
|
||||||
log.info(s"Connect to world request for '$name'")
|
log.info(s"Connect to world request for '$name'")
|
||||||
val response = ConnectToWorldMessage(serverName, publicAddress.getHostString, publicAddress.getPort)
|
val response = ConnectToWorldMessage(serverName, publicAddress.getAddress.getHostAddress, publicAddress.getPort)
|
||||||
sendResponse(PacketCoding.CreateGamePacket(0, response))
|
sendResponse(PacketCoding.CreateGamePacket(0, response))
|
||||||
sendResponse(DropSession(sessionId, "user transferring to world"))
|
sendResponse(DropSession(sessionId, "user transferring to world"))
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue