Skip to content

Commit

Permalink
[Issue-42] Use the default (blocking) AddressResolverProvider
Browse files Browse the repository at this point in the history
  • Loading branch information
gaol committed Nov 28, 2024
1 parent 52701e6 commit 9181ce2
Showing 1 changed file with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
import io.vertx.core.Vertx;
import io.vertx.core.VertxOptions;
import io.vertx.core.impl.VertxBuilder;
import io.vertx.core.spi.resolver.ResolverProvider;
import org.jboss.as.controller.CapabilityServiceBuilder;
import org.jboss.as.controller.OperationContext;
import org.jboss.msc.Service;
Expand All @@ -29,6 +30,12 @@
* @author <a href="[email protected]">Lin Gao</a>
*/
public class VertxProxyService implements Service, VertxConstants {

static {
if (System.getProperty(ResolverProvider.DISABLE_DNS_RESOLVER_PROP_NAME) == null) {
System.setProperty(ResolverProvider.DISABLE_DNS_RESOLVER_PROP_NAME, "true");
}
}
private VertxProxy vertxProxy;
private final String optionName;
private final Supplier<NamedVertxOptions> optionsSupplier;
Expand Down

0 comments on commit 9181ce2

Please sign in to comment.