From 4906fd02277f97f714b1aeb3d741a148af3debf4 Mon Sep 17 00:00:00 2001 From: RealBrandon Date: Sat, 27 Apr 2024 15:19:45 +0100 Subject: [PATCH] Change default values of LG_LOCATIONS and LG_SPEEDTEST_FILES back --- config.dist.php | 10 ++++------ docker/php-fpm/src/config.php | 10 ++++------ 2 files changed, 8 insertions(+), 12 deletions(-) diff --git a/config.dist.php b/config.dist.php index 4d11caf..b9f42ef 100644 --- a/config.dist.php +++ b/config.dist.php @@ -63,12 +63,11 @@ const LG_METHODS = [ ]; // Define other looking glasses, this is useful if you have multiple networks and looking glasses; -/* const LG_LOCATIONS = [ +const LG_LOCATIONS = [ 'Location A' => 'https://github.com/hybula/lookingglass/', 'Location B' => 'https://github.com/hybula/lookingglass/', 'Location C' => 'https://github.com/hybula/lookingglass/', -]; */ -const LG_LOCATIONS = []; +]; // Enable the iPerf info inside the speedtest block, set to false to disable; const LG_SPEEDTEST_IPERF = true; @@ -81,12 +80,11 @@ const LG_SPEEDTEST_LABEL_OUTGOING = 'iPerf3 Outgoing'; // Define the command to use to test outgoing speed using iPerf, preferable iPerf3; const LG_SPEEDTEST_CMD_OUTGOING = 'iperf3 -4 -c hostname -p 5201 -P 4 -R'; // Define speedtest files with URLs to the actual files; -/* const LG_SPEEDTEST_FILES = [ +const LG_SPEEDTEST_FILES = [ '100M' => 'https://github.com/hybula/lookingglass/', '1G' => 'https://github.com/hybula/lookingglass/', '10G' => 'https://github.com/hybula/lookingglass/' -]; */ -const LG_SPEEDTEST_FILES = []; +]; // Define if you require visitors to agree with the Terms of Use. The value should be a link to the terms, or false to disable it completely. const LG_TERMS = false; diff --git a/docker/php-fpm/src/config.php b/docker/php-fpm/src/config.php index 47ed161..02ad439 100644 --- a/docker/php-fpm/src/config.php +++ b/docker/php-fpm/src/config.php @@ -63,12 +63,11 @@ const LG_METHODS = [ ]; // Define other looking glasses, this is useful if you have multiple networks and looking glasses; -/* const LG_LOCATIONS = [ +const LG_LOCATIONS = [ 'Location A' => 'https://github.com/hybula/lookingglass/', 'Location B' => 'https://github.com/hybula/lookingglass/', 'Location C' => 'https://github.com/hybula/lookingglass/', -]; */ -const LG_LOCATIONS = []; +]; // Enable the iPerf info inside the speedtest block, set to false to disable; const LG_SPEEDTEST_IPERF = true; @@ -81,12 +80,11 @@ const LG_SPEEDTEST_LABEL_OUTGOING = 'iPerf3 Outgoing'; // Define the command to use to test outgoing speed using iPerf, preferable iPerf3; const LG_SPEEDTEST_CMD_OUTGOING = 'iperf3 -4 -c hostname -p 5201 -P 4 -R'; // Define speedtest files with URLs to the actual files; -/* const LG_SPEEDTEST_FILES = [ +const LG_SPEEDTEST_FILES = [ '100M' => 'https://github.com/hybula/lookingglass/', '1G' => 'https://github.com/hybula/lookingglass/', '10G' => 'https://github.com/hybula/lookingglass/' -]; */ -const LG_SPEEDTEST_FILES = []; +]; // Define if you require visitors to agree with the Terms of Use. The value should be a link to the terms, or false to disable it completely. define('LG_TERMS', getenv('LG_TERMS') ?: false);