mirror of
https://github.com/TeaOSLab/EdgeCommon.git
synced 2025-11-14 13:10:25 +08:00
智能DNS支持自定义端口
This commit is contained in:
@@ -16,7 +16,7 @@ func NewHTTPSProtocolConfigFromJSON(configJSON []byte) (*HTTPSProtocolConfig, er
|
||||
return config, nil
|
||||
}
|
||||
|
||||
// HTTPS协议配置
|
||||
// HTTPSProtocolConfig HTTPS协议配置
|
||||
type HTTPSProtocolConfig struct {
|
||||
BaseProtocol `yaml:",inline"`
|
||||
|
||||
@@ -24,7 +24,7 @@ type HTTPSProtocolConfig struct {
|
||||
SSLPolicy *sslconfigs.SSLPolicy `yaml:"sslPolicy" json:"sslPolicy"`
|
||||
}
|
||||
|
||||
// 初始化
|
||||
// Init 初始化
|
||||
func (this *HTTPSProtocolConfig) Init() error {
|
||||
err := this.InitBase()
|
||||
if err != nil {
|
||||
@@ -41,7 +41,7 @@ func (this *HTTPSProtocolConfig) Init() error {
|
||||
return nil
|
||||
}
|
||||
|
||||
// 转换为JSON
|
||||
// AsJSON 转换为JSON
|
||||
func (this *HTTPSProtocolConfig) AsJSON() ([]byte, error) {
|
||||
return json.Marshal(this)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user