Update core to 1.8.1 and support Reality proto (#326)

* update: Support reality proto

* fix: typo
This commit is contained in:
thank243
2023-04-22 16:41:22 +08:00
committed by GitHub
parent 0fa8a45e51
commit 169f742b76
14 changed files with 206 additions and 273 deletions

View File

@@ -140,7 +140,7 @@ func (c *Controller) Start() error {
)
// Check cert service in need
if c.nodeInfo.EnableTLS {
if c.nodeInfo.EnableTLS && c.config.EnableREALITY == false {
c.tasks = append(c.tasks, periodicTask{
tag: "cert monitor",
Periodic: &task.Periodic{
@@ -599,7 +599,7 @@ func (c *Controller) logPrefix() string {
// Check Cert
func (c *Controller) certMonitor() error {
if c.nodeInfo.EnableTLS {
if c.nodeInfo.EnableTLS && c.config.EnableREALITY == false {
switch c.config.CertConfig.CertMode {
case "dns", "http", "tls":
lego, err := mylego.New(c.config.CertConfig)