mirror of
https://github.com/TeaOSLab/EdgeCommon.git
synced 2025-11-27 06:10:24 +08:00
节点组合配置时服务间可以共用证书数据
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
package serverconfigs
|
||||
|
||||
import (
|
||||
"context"
|
||||
"encoding/json"
|
||||
"github.com/TeaOSLab/EdgeCommon/pkg/serverconfigs/sslconfigs"
|
||||
)
|
||||
@@ -25,14 +26,14 @@ type HTTPSProtocolConfig struct {
|
||||
}
|
||||
|
||||
// Init 初始化
|
||||
func (this *HTTPSProtocolConfig) Init() error {
|
||||
func (this *HTTPSProtocolConfig) Init(ctx context.Context) error {
|
||||
err := this.InitBase()
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
if this.SSLPolicy != nil {
|
||||
err := this.SSLPolicy.Init()
|
||||
err := this.SSLPolicy.Init(ctx)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user