智能DNS支持自定义端口

This commit is contained in:
GoEdgeLab
2022-07-27 16:56:32 +08:00
parent ec28026708
commit f0080fbf6e
9 changed files with 4285 additions and 3187 deletions

View File

@@ -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)
}