This is an automated email from the ASF dual-hosted git repository.
rcordier pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/james-jspf.git
The following commit(s) were added to refs/heads/master by this push:
new d171bdb [JSPF-114] Use custom resolver for Async
d171bdb is described below
commit d171bdb18a1f9d929eaec72f8aee310011961aa1
Author: Emerson Pinter <[email protected]>
AuthorDate: Mon Jan 20 00:43:27 2025 -0300
[JSPF-114] Use custom resolver for Async
The resolver passed to constructor shouldn't be ignored.
---
.../src/main/java/org/apache/james/jspf/impl/DNSServiceXBillImpl.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git
a/resolver/src/main/java/org/apache/james/jspf/impl/DNSServiceXBillImpl.java
b/resolver/src/main/java/org/apache/james/jspf/impl/DNSServiceXBillImpl.java
index 7e15933..7384894 100644
--- a/resolver/src/main/java/org/apache/james/jspf/impl/DNSServiceXBillImpl.java
+++ b/resolver/src/main/java/org/apache/james/jspf/impl/DNSServiceXBillImpl.java
@@ -187,7 +187,7 @@ public class DNSServiceXBillImpl implements DNSService {
throw new IllegalArgumentException();
}
LOGGER.debug("Start {}-Record lookup for : {}", recordTypeDescription,
request.getHostname());
- final LookupSession lookupSession =
LookupSession.defaultBuilder().build();
+ final LookupSession lookupSession =
LookupSession.defaultBuilder().resolver(this.resolver).build();
try {
return
lookupSession.lookupAsync(Name.fromString(request.getHostname()), dnsJavaType)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]