move skip IPs configuration to preflight settings (#2557)

Co-authored-by: Alex Justesen <1144087+alexjustesen@users.noreply.github.com>
This commit is contained in:
Alex Justesen
2025-12-16 09:32:52 -05:00
committed by GitHub
parent 03e02b6eb9
commit c7c467ff8a
2 changed files with 3 additions and 4 deletions
+2 -2
View File
@@ -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;
}
+1 -2
View File
@@ -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.
*/