Added clarifications to driver-adapter stack building method
This commit is contained in:
parent
eb3a0de01b
commit
b886fcd54c
6 changed files with 38 additions and 14 deletions
|
|
@ -227,9 +227,9 @@ class RemoteActorRefProvider(
|
|||
|
||||
def getExternalAddressFor(addr: Address): Option[Address] = {
|
||||
addr match {
|
||||
case _ if hasAddress(addr) ⇒ Some(local.rootPath.address)
|
||||
case Address("akka", _, Some(_), Some(_)) ⇒ Some(transport.defaultAddress)
|
||||
case _ ⇒ None
|
||||
case _ if hasAddress(addr) ⇒ Some(local.rootPath.address)
|
||||
case Address(_, _, Some(_), Some(_)) ⇒ try Some(transport.localAddressForRemote(addr)) catch { case NonFatal(_) ⇒ None }
|
||||
case _ ⇒ None
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue