mirror of
https://github.com/alexjustesen/speedtest-tracker.git
synced 2026-06-23 07:00:08 +00:00
move skip IPs configuration to preflight settings (#2557)
Co-authored-by: Alex Justesen <1144087+alexjustesen@users.noreply.github.com>
This commit is contained in:
@@ -92,11 +92,11 @@ class SkipSpeedtestJob implements ShouldQueue
|
||||
$skipIPs = array_filter(
|
||||
array_map(
|
||||
'trim',
|
||||
explode(',', config('speedtest.skip_ips')),
|
||||
explode(',', config('speedtest.preflight.skip_ips')),
|
||||
),
|
||||
);
|
||||
|
||||
if (count($skipIPs) < 1) {
|
||||
if (empty($skipIPs)) {
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
@@ -32,6 +32,7 @@ return [
|
||||
'preflight' => [
|
||||
'external_ip_url' => env('SPEEDTEST_CHECKINTERNET_URL') ?? env('SPEEDTEST_EXTERNAL_IP_URL', 'https://icanhazip.com'),
|
||||
'internet_check_hostname' => env('SPEEDTEST_CHECKINTERNET_URL') ?? env('SPEEDTEST_INTERNET_CHECK_HOSTNAME', 'icanhazip.com'),
|
||||
'skip_ips' => env('SPEEDTEST_SKIP_IPS'),
|
||||
],
|
||||
|
||||
/**
|
||||
@@ -39,8 +40,6 @@ return [
|
||||
*/
|
||||
'allowed_ips' => env('ALLOWED_IPS'),
|
||||
|
||||
'skip_ips' => env('SPEEDTEST_SKIP_IPS', ''),
|
||||
|
||||
/**
|
||||
* Threshold settings.
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user