Skip to content

Commit

Permalink
fix security issue
Browse files Browse the repository at this point in the history
  • Loading branch information
xuelianhan007 committed Nov 29, 2024
1 parent 6f5ea9e commit a48ad25
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit a48ad25

Please sign in to comment.