From 70fc8d06f3425ded900772eaf179e0525956a891 Mon Sep 17 00:00:00 2001 From: chrislu Date: Wed, 31 May 2023 11:23:39 -0700 Subject: [PATCH] fix java ssl context loading --- .../client/src/main/java/seaweedfs/client/FilerSslContext.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/other/java/client/src/main/java/seaweedfs/client/FilerSslContext.java b/other/java/client/src/main/java/seaweedfs/client/FilerSslContext.java index 5a88c1da3..520adfd38 100644 --- a/other/java/client/src/main/java/seaweedfs/client/FilerSslContext.java +++ b/other/java/client/src/main/java/seaweedfs/client/FilerSslContext.java @@ -21,7 +21,7 @@ public class FilerSslContext { String home = System.getProperty("user.home"); File f1 = new File("./"+securityFileName); File f2 = new File(home + "/.seaweedfs/"+securityFileName); - File f3 = new File(home + "/etc/seaweedfs/"+securityFileName); + File f3 = new File("/etc/seaweedfs/"+securityFileName); File securityFile = f1.exists()? f1 : f2.exists() ? f2 : f3.exists()? f3 : null;