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

This commit is contained in:
GoEdgeLab
2023-11-02 17:19:56 +08:00
parent 2ec06e3cb3
commit c260829e24

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).