Skip to content

Commit

Permalink
Merge pull request #44 from gaol/issue_42
Browse files Browse the repository at this point in the history
[Issue-42] Use the default (blocking) AddressResolverProvider
  • Loading branch information
gaol authored Nov 29, 2024
2 parents 52701e6 + e85e6e5 commit 6e4a2f2
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
<module name="org.jboss.as.version"/>
<module name="org.jboss.modules"/>
<module name="org.jboss.logging"/>
<module name="org.wildfly.security.manager" />
<module name="org.wildfly.subsystem"/>
<module name="org.jboss.as.weld.common"/>
<module name="org.jboss.jandex"/>
Expand Down
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 @@ -15,6 +16,7 @@
import org.jboss.msc.service.StartException;
import org.jboss.msc.service.StopContext;
import org.wildfly.extension.vertx.logging.VertxLogger;
import org.wildfly.security.manager.WildFlySecurityManager;

import java.util.concurrent.CompletableFuture;
import java.util.function.Consumer;
Expand All @@ -29,6 +31,12 @@
* @author <a href="[email protected]">Lin Gao</a>
*/
public class VertxProxyService implements Service, VertxConstants {

static {
if (WildFlySecurityManager.getPropertyPrivileged(ResolverProvider.DISABLE_DNS_RESOLVER_PROP_NAME, null) == null) {
WildFlySecurityManager.setPropertyPrivileged(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 6e4a2f2

Please sign in to comment.