baseline添加source字段

This commit is contained in:
M09Ic 2023-01-03 18:27:06 +08:00
parent 835d4663dd
commit e6aabe44c5
2 changed files with 2 additions and 0 deletions

View File

@ -90,6 +90,7 @@ func NewPool(ctx context.Context, config *pkg.Config) (*Pool, error) {
}
}
bl.Source = int(unit.source)
bl.ReqDepth = unit.depth
bl.Spended = time.Since(start).Milliseconds()
switch unit.source {

View File

@ -85,6 +85,7 @@ type Baseline struct {
IsValid bool `json:"valid"`
IsFuzzy bool `json:"fuzzy"`
URLs []string `json:"urls"`
Source int `json:"source"`
RecuDepth int `json:"-"`
ReqDepth int `json:"depth"`
Recu bool `json:"-"`