mirror of
https://github.com/librespeed/speedtest
synced 2026-11-26 18:08:04 +08:00
feat: allow to specify obfuscation salt string
This commit is contained in:
1 parent
a1c43977ad
commit
fd06e94de3
2 files changed
+5
No files matched your search
@@ -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