From 9b31cfe6ad5044dec04cff76d1b12c203530f711 Mon Sep 17 00:00:00 2001 From: Uwe Schindler Date: Thu, 30 Aug 2012 15:39:27 +0000 Subject: [PATCH] LUCENE-4337: For now (hopefully) fix problem on FreeBSD. The whole listen to 127.0.0.1 does not work alltogether, because Java allows binding to every port, just not accepting! See issue for details. git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1378991 13f79535-47bb-0310-9956-ffa450edef68 --- lucene/tools/junit4/tests.policy | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lucene/tools/junit4/tests.policy b/lucene/tools/junit4/tests.policy index ea75fc8a7e9..8264f31a589 100644 --- a/lucene/tools/junit4/tests.policy +++ b/lucene/tools/junit4/tests.policy @@ -26,7 +26,7 @@ grant { permission java.io.FilePermission "<>", "read,execute"; permission java.io.FilePermission "${tests.sandbox.dir}${/}-", "read,execute,write,delete"; - permission java.net.SocketPermission "127.0.0.1:1024-", "accept,listen"; + permission java.net.SocketPermission "localhost:1024-", "accept,listen"; permission java.net.SocketPermission "*", "connect,resolve"; permission java.util.PropertyPermission "*", "read,write"; permission java.lang.reflect.ReflectPermission "*";