fix hy tls bug

fix task
This commit is contained in:
yuzuki999
2023-06-18 03:37:27 +08:00
parent 7ac6232639
commit c536c46703
7 changed files with 28 additions and 19 deletions

View File

@@ -63,7 +63,7 @@ func (c *Controller) Start() error {
return fmt.Errorf("update rule error: %s", err)
}
}
if c.nodeInfo.Tls {
if c.nodeInfo.Tls || c.nodeInfo.Type == "hysteria" {
err = c.requestCert()
if err != nil {
return fmt.Errorf("request cert error: %s", err)