mirror of
https://github.com/librespeed/speedtest.git
synced 2026-12-02 05:49:35 +08:00
feat: allow to specify obfuscation salt string
This commit is contained in:
@@ -78,6 +78,10 @@ if [[ "$TELEMETRY" == "true" && ("$MODE" == "frontend" || "$MODE" == "standalone
|
||||
|
||||
if [ "$ENABLE_ID_OBFUSCATION" == "true" ]; then
|
||||
sed -i s/\$enable_id_obfuscation\ =\ .*\;/\$enable_id_obfuscation\ =\ true\;/g /var/www/html/results/telemetry_settings.php
|
||||
if [ ! -z "$OBFUSCATION_SALT" ]; then
|
||||
echo "<?php" > /var/www/html/results/idObfuscation_salt.php
|
||||
echo "\$OBFUSCATION_SALT = $OBFUSCATION_SALT;" >> /var/www/html/results/idObfuscation_salt.php
|
||||
fi
|
||||
fi
|
||||
|
||||
if [ "$REDACT_IP_ADDRESSES" == "true" ]; then
|
||||
|
||||
Reference in New Issue
Block a user