feat(scan): диапазон IPv4-подсетей CIDR–CIDR в поле целей (нормализация в список)

Made-with: Cursor
This commit is contained in:
Луценко Андрей Анатольевич
2026-04-10 15:02:19 +10:00
parent 29bd136cea
commit 009aeb5dbf
5 changed files with 183 additions and 9 deletions
+1 -1
View File
@@ -18,7 +18,7 @@ func NewPostgresStore(db *sql.DB) *PostgresStore {
}
func (s *PostgresStore) CreateScan(req CreateScanRequest) (ScanJob, error) {
if err := validateCreateScanRequest(req); err != nil {
if err := validateCreateScanRequest(&req); err != nil {
return ScanJob{}, err
}
applyDefaultOptions(&req.Options)