mirror of
https://github.com/lunchcat/sif.git
synced 2026-01-10 12:13:22 -08:00
cmd/scan: use strings.Cut instead of Split
solves the issue with nil Disallow values
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user