fix file cert mode, support null ShortIds for reality

This commit is contained in:
yuzuki999
2023-07-24 01:24:28 +08:00
parent 99ea46457c
commit cda0b6711e
2 changed files with 7 additions and 0 deletions

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")