You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pulsar.apache.org by GitBox <gi...@apache.org> on 2021/12/31 02:30:40 UTC

[GitHub] [pulsar] Technoboy- commented on a change in pull request #13503: [security] Allow Client Builder set Dnslookup params

Technoboy- commented on a change in pull request #13503:
URL: https://github.com/apache/pulsar/pull/13503#discussion_r776910760



##########
File path: pulsar-client/src/main/java/org/apache/pulsar/client/impl/ClientBuilderImpl.java
##########
@@ -338,6 +338,14 @@ public ClientBuilder enableTransaction(boolean enableTransaction) {
         return this;
     }
 
+    @Override
+    public ClientBuilder dnsLookupBind(String address, int port) {
+        checkArgument(port >= 0 && port <= 65535, "DnsLookBindPort need to be within the range of 0 and 65535");
+        conf.setDnsLookupBindAddress(address);
+        conf.setDnsLookupBindPort(port);
+        return null;

Review comment:
       return this.




-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@pulsar.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org