Skip to content

Apache Lucene open-source search software

SOLR-7293: Fix bug that Solr server does not listen on IPv6 interfaces by default

Uwe Schindlerc3bbff6ee64f
diff --git a/solr/CHANGES.txt b/solr/CHANGES.txt
index 5c2d654ad0c..52ca470a5eb 100644
--- a/solr/CHANGES.txt
+++ b/solr/CHANGES.txt
@@ -306,6 +306,9 @@ Bug Fixes
* SOLR-7305: BlendedInfixLookupFactory swallows root IOException when it occurs.
(Stephan Lagraulet via shalin)
+* SOLR-7293: Fix bug that Solr server does not listen on IPv6 interfaces by default.
+ (Uwe Schindler, Sebastian Pesman)
+
Optimizations
----------------------
diff --git a/solr/bin/solr b/solr/bin/solr
index 9f6d10ab4fe..090d9fd86e7 100755
--- a/solr/bin/solr
+++ b/solr/bin/solr
@@ -1335,7 +1335,7 @@ $SOLR_HOST_ARG -Djetty.port=$SOLR_PORT \
-Dsolr.solr.home=$SOLR_HOME \
-Dsolr.install.dir=$SOLR_TIP \
-Duser.timezone=$SOLR_TIMEZONE \
--Djava.net.preferIPv4Stack=true $LOG4J_CONFIG \
+$LOG4J_CONFIG \
$SOLR_OPTS"
if [ "$SOLR_MODE" == "solrcloud" ]; then
diff --git a/solr/bin/solr.cmd b/solr/bin/solr.cmd
index ac5e351243e..0ca7de19b08 100644
--- a/solr/bin/solr.cmd
+++ b/solr/bin/solr.cmd
@@ -849,7 +849,7 @@ IF "%verbose%"=="1" (
@echo.
)
-set START_OPTS=-Duser.timezone=%SOLR_TIMEZONE% -Djava.net.preferIPv4Stack=true
+set START_OPTS=-Duser.timezone=%SOLR_TIMEZONE%
set START_OPTS=%START_OPTS% !GC_TUNE! %GC_LOG_OPTS%
IF NOT "!CLOUD_MODE_OPTS!"=="" set "START_OPTS=%START_OPTS% !CLOUD_MODE_OPTS!"
IF NOT "%REMOTE_JMX_OPTS%"=="" set "START_OPTS=%START_OPTS% %REMOTE_JMX_OPTS%"