瀏覽代碼

fix cert file path

tags/v0.9.4
Jonathan Cobb 4 年之前
父節點
當前提交
05819d6fd1
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. +1
    -1
      bubble-server/src/main/java/bubble/resources/account/AuthResource.java

+ 1
- 1
bubble-server/src/main/java/bubble/resources/account/AuthResource.java 查看文件

@@ -461,7 +461,7 @@ public class AuthResource {
if (type == null) type = CertType.pem;
final BubbleNetwork thisNet = configuration.getThisNetwork();
if (thisNet == null) return die("getCaCert: thisNetwork was null");
final File certFile = new File(CACERTS_DIR, thisNet.getNetworkDomain()+"."+type.name());
final File certFile = new File(CACERTS_DIR, thisNet.getNetworkDomain()+"-ca-cert."+type.name());
if (!certFile.exists()) return notFound(type.name());
return send(new FileSendableResource(certFile).setForceDownload(true));
}


Loading…
取消
儲存