增加支持服务CNAME选项/提供重新生成服务CNAME API

This commit is contained in:
刘祥超
2021-10-16 12:02:42 +08:00
parent d30b10baee
commit 9b9c6471f7
4 changed files with 76 additions and 3 deletions

View File

@@ -33,6 +33,7 @@ type Server struct {
DnsName string `field:"dnsName"` // DNS名称
TcpPorts string `field:"tcpPorts"` // 所包含TCP端口
UdpPorts string `field:"udpPorts"` // 所包含UDP端口
SupportCNAME uint8 `field:"supportCNAME"` // 允许CNAME不在域名名单
}
type ServerOperator struct {
@@ -67,6 +68,7 @@ type ServerOperator struct {
DnsName interface{} // DNS名称
TcpPorts interface{} // 所包含TCP端口
UdpPorts interface{} // 所包含UDP端口
SupportCNAME interface{} // 允许CNAME不在域名名单
}
func NewServerOperator() *ServerOperator {