上传域名统计数据时限制域名长度不能超过64位

This commit is contained in:
刘祥超
2023-11-02 17:19:56 +08:00
parent b5bb4e0df9
commit 993c7ee822

View File

@@ -83,7 +83,7 @@ func (this *ServerDomainHourlyStatDAO) IncreaseHourlyStat(tx *dbs.Tx, clusterId
if len(hour) != 10 {
return errors.New("invalid hour '" + hour + "'")
}
if len(domain) == 0 {
if len(domain) == 0 || len(domain) > 64 {
return nil
}
err := this.Query(tx).