cmd/scan: use strings.Cut instead of Split

solves the issue with nil Disallow values
This commit is contained in:
Sol Fisher Romanoff
2023-09-05 10:34:57 +03:00
parent 1732fddc07
commit 5d1e793a3b

View File

@@ -68,7 +68,7 @@ func Scan(url string, timeout time.Duration, threads int, logdir string) {
continue
}
sanitizedRobot := strings.Split(robot, ": ")[1]
_, sanitizedRobot, _ := strings.Cut(robot, ": ")
log.Debugf("%s", robot)
resp, err := client.Get(url + "/" + sanitizedRobot)
if err != nil {