增加DNS服务商账号管理

This commit is contained in:
刘祥超
2020-11-11 21:32:25 +08:00
parent ea10e2e3c1
commit e1aa11cdb7
17 changed files with 488 additions and 0 deletions

View File

@@ -4,6 +4,7 @@ import (
"crypto/md5"
"encoding/json"
_ "github.com/go-sql-driver/mysql"
"github.com/iwind/TeaGo/dbs"
"github.com/iwind/TeaGo/logs"
"testing"
)
@@ -42,3 +43,12 @@ func TestNewServerDAO_md5(t *testing.T) {
h := m.Sum(nil)
t.Logf("%x", h)
}
func TestServerDAO_genDNSName(t *testing.T) {
dbs.NotifyReady()
dnsName, err := SharedServerDAO.genDNSName()
if err != nil {
t.Fatal(err)
}
t.Log("dnsName:", dnsName)
}