mirror of
https://github.com/lunchcat/sif.git
synced 2025-12-30 06:30:45 -08:00
dirlist: handle 403
This commit is contained in:
@@ -87,7 +87,7 @@ func Dirlist(size string, url string, timeout time.Duration, threads int, logdir
|
||||
return
|
||||
}
|
||||
|
||||
if resp.StatusCode != 404 {
|
||||
if resp.StatusCode != 404 && resp.StatusCode != 403 {
|
||||
// log url, directory, and status code
|
||||
dirlog.Infof("%s [%s]", styles.Status.Render(strconv.Itoa(resp.StatusCode)), styles.Highlight.Render(directory))
|
||||
if logdir != "" {
|
||||
|
||||
Reference in New Issue
Block a user