mirror of
https://github.com/2revoemag/PSF-BotServer.git
synced 2026-01-20 02:24:45 +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
|
|
@ -128,7 +128,7 @@ class LoginSessionActor extends Actor with MDCContextAware {
|
|||
|
||||
case ConnectToWorldRequestMessage(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(DropSession(sessionId, "user transferring to world"))
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue