You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucene.apache.org by th...@apache.org on 2020/09/10 22:05:16 UTC

[lucene-solr] 01/02: Bind WireMock to loopback IP address only

This is an automated email from the ASF dual-hosted git repository.

thelabdude pushed a commit to branch reference_impl_dev
in repository https://gitbox.apache.org/repos/asf/lucene-solr.git

commit 75860861cfc8978d0c2e664df189f1c399b5cee4
Author: Timothy Potter <th...@gmail.com>
AuthorDate: Thu Sep 10 16:04:27 2020 -0600

    Bind WireMock to loopback IP address only
---
 .../org/apache/solr/client/solrj/impl/BaseSolrClientWireMockTest.java   | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/solr/solrj/src/test/org/apache/solr/client/solrj/impl/BaseSolrClientWireMockTest.java b/solr/solrj/src/test/org/apache/solr/client/solrj/impl/BaseSolrClientWireMockTest.java
index 0874927..3626a52 100644
--- a/solr/solrj/src/test/org/apache/solr/client/solrj/impl/BaseSolrClientWireMockTest.java
+++ b/solr/solrj/src/test/org/apache/solr/client/solrj/impl/BaseSolrClientWireMockTest.java
@@ -123,7 +123,7 @@ public abstract class BaseSolrClientWireMockTest extends SolrTestCase {
     qtp.start();
 
     log.info("@BeforeClass: Initializing WireMock ...");
-    mockSolr = new WireMockServer(options().dynamicPort().httpServerFactory(new JettyHttp2ServerFactory()).enableBrowserProxying(false));
+    mockSolr = new WireMockServer(options().bindAddress("127.0.0.1").dynamicPort().httpServerFactory(new JettyHttp2ServerFactory()).enableBrowserProxying(false));
     mockSolr.start();
     log.info("Mock Solr is running at url: {}", mockSolr.baseUrl());
     configureFor("http", "localhost", mockSolr.port());