Potential fix for #672
This commit is contained in:
parent
7582b1ec3a
commit
1e72fbfe8b
7 changed files with 15 additions and 19 deletions
|
|
@ -96,7 +96,7 @@ object ActorSerialization {
|
|||
private[akka] def toAddressProtocol(actorRef: ActorRef) = {
|
||||
val address = actorRef.homeAddress.getOrElse(Actor.remote.address)
|
||||
AddressProtocol.newBuilder
|
||||
.setHostname(address.getHostName)
|
||||
.setHostname(address.getAddress.getHostAddress)
|
||||
.setPort(address.getPort)
|
||||
.build
|
||||
}
|
||||
|
|
@ -162,7 +162,7 @@ object ActorSerialization {
|
|||
format: Format[T]): ActorRef = {
|
||||
val builder = SerializedActorRefProtocol.newBuilder.mergeFrom(bytes)
|
||||
homeAddress.foreach { addr =>
|
||||
val addressProtocol = AddressProtocol.newBuilder.setHostname(addr.getHostName).setPort(addr.getPort).build
|
||||
val addressProtocol = AddressProtocol.newBuilder.setHostname(addr.getAddress.getHostAddress).setPort(addr.getPort).build
|
||||
builder.setOriginalAddress(addressProtocol)
|
||||
}
|
||||
fromProtobufToLocalActorRef(builder.build, format, None)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue