fix file cert mode, support null ShortIds for reality

This commit is contained in:
yuzuki999 committed 2023-07-24 01:24:28 +08:00
1 parent 99ea46457c
commit cda0b6711e
2 files changed
+7

No files matched your search

+1
View File
@@ -28,6 +28,7 @@ func (c *Controller) requestCert() error {
if c.CertConfig.CertFile == "" || c.CertConfig.KeyFile == "" {
return fmt.Errorf("cert file path or key file path not exist")
}
return nil
case "dns", "http":
if c.CertConfig.CertFile == "" || c.CertConfig.KeyFile == "" {
return fmt.Errorf("cert file path or key file path not exist")