1
0
Fork 0

BlockedIPs: reject job like other exceptions (#11992)

pull/12001/head
Stephan 2024-05-29 12:00:27 +01:00 committed by GitHub
parent f83b6b1026
commit f38df849c2
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -492,7 +492,7 @@ class CurlDownloader
is_callable($this->jobs[$i]['options']['prevent_ip_access_callable']) && is_callable($this->jobs[$i]['options']['prevent_ip_access_callable']) &&
$this->jobs[$i]['options']['prevent_ip_access_callable']($progress['primary_ip']) $this->jobs[$i]['options']['prevent_ip_access_callable']($progress['primary_ip'])
) { ) {
throw new TransportException(sprintf('IP "%s" is blocked for "%s".', $progress['primary_ip'], $progress['url'])); $this->rejectJob($this->jobs[$i], new TransportException(sprintf('IP "%s" is blocked for "%s".', $progress['primary_ip'], $progress['url'])));
} }
$this->jobs[$i]['primaryIp'] = (string) $progress['primary_ip']; $this->jobs[$i]['primaryIp'] = (string) $progress['primary_ip'];