From a48ad25acedd56f78b10fababf1627a78d4ab73e Mon Sep 17 00:00:00 2001 From: xuelianhan007 Date: Fri, 29 Nov 2024 12:26:46 +0800 Subject: [PATCH] fix security issue --- .../consoleconnect/kraken/operator/core/toolkit/IpUtils.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kraken-java-sdk/kraken-java-sdk-core/src/main/java/com/consoleconnect/kraken/operator/core/toolkit/IpUtils.java b/kraken-java-sdk/kraken-java-sdk-core/src/main/java/com/consoleconnect/kraken/operator/core/toolkit/IpUtils.java index 86b69373..dd4ba1b8 100644 --- a/kraken-java-sdk/kraken-java-sdk-core/src/main/java/com/consoleconnect/kraken/operator/core/toolkit/IpUtils.java +++ b/kraken-java-sdk/kraken-java-sdk-core/src/main/java/com/consoleconnect/kraken/operator/core/toolkit/IpUtils.java @@ -57,7 +57,7 @@ public static String getHostAddress() { public static String getFQDN() { try { ProcessBuilder builder = new ProcessBuilder(); - builder.command("bash", "-c", "hostname -f"); + builder.command("/usr/bin/bash", "-c", "hostname -f"); Process process = builder.start(); BufferedReader reader = new BufferedReader(new InputStreamReader(process.getInputStream())); String line;