From c79e9ade15d162793012a5713d526407c4905ca0 Mon Sep 17 00:00:00 2001 From: "Christian P. MOMON" Date: Sat, 11 Feb 2023 08:39:59 +0100 Subject: [PATCH] Added optional parameter IPV6ONLY in statoolinfos.sh. --- resources/scripts/statoolinfos.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/resources/scripts/statoolinfos.sh b/resources/scripts/statoolinfos.sh index 538efe7..e1b8b92 100755 --- a/resources/scripts/statoolinfos.sh +++ b/resources/scripts/statoolinfos.sh @@ -13,9 +13,10 @@ if [[ "$javaCheck" =~ ^/.* ]]; then # Optional system properties: # LOGFILE="-Dlog4j2.configurationFile=../../log4j2.properties" # LOGLEVEL="-Dlog4j2.level=ERROR" + # IPV6ONLY="-Djava.net.preferIPv4Stack=false -Djava.net.preferIPv6Addresses=true" # https://logging.apache.org/log4j/log4j-2.11.2/manual/configuration.html#System_Properties - java -Djava.awt.headless=true $LOGFILE $LOGLEVEL -jar "$(dirname "$0")"/statoolinfos.jar $@ + java -Djava.awt.headless=true $IPV6ONLY $LOGFILE $LOGLEVEL -jar "$(dirname "$0")"/statoolinfos.jar $@ else echo "Java requirement............... MISSING" fi