=dns amend message for failing in wrong protocol use in dns
This commit is contained in:
parent
9f60497a28
commit
e30fd3d530
1 changed files with 5 additions and 6 deletions
|
|
@ -42,13 +42,12 @@ class SimpleDnsManager(val ext: DnsExt) extends Actor with RequiresMessageQueue[
|
|||
|
||||
case m: dns.DnsProtocol.Resolve ⇒
|
||||
if (inetDnsEnabled) {
|
||||
log.info(
|
||||
"Message of [akka.io.dns.DnsProtocol.Protocol] received ({}) while inet-address dns was configured. Dropping DNS resolve request." +
|
||||
"Only use [akka.io.dns.DnsProtocol.resolve] to create resolution requests for the Async DNS resolver.",
|
||||
log.error(
|
||||
"Message of [akka.io.dns.DnsProtocol.Protocol] received ({}) while inet-address dns was configured. Dropping DNS resolve request. " +
|
||||
"Only use [akka.io.dns.DnsProtocol] to create resolution requests for the Async DNS resolver (enabled by `akka.io.dns = async-dns`). " +
|
||||
"For the classic (now used) DNS resolver use [akka.io.Dns] messages.",
|
||||
Logging.simpleName(m))
|
||||
}
|
||||
|
||||
resolver.forward(m)
|
||||
} else resolver.forward(m)
|
||||
}
|
||||
|
||||
override def postStop(): Unit = {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue