mirror of
https://github.com/librespeed/speedtest.git
synced 2026-05-14 08:46:38 +00:00
feat: allow to specify obfuscation salt string
This commit is contained in:
parent
a1c43977ad
commit
fd06e94de3
2 changed files with 5 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue