mirror of
https://github.com/unraid/webgui.git
synced 2026-01-05 00:59:48 -06:00
diagnostics: anonymize urls in servers.conf
This commit is contained in:
@@ -695,6 +695,7 @@ newline("/$diag/system/sshd.txt");
|
||||
// copy servers.conf
|
||||
copy("/etc/nginx/conf.d/servers.conf", "/$diag/system/servers.conf.txt");
|
||||
maskIP("/$diag/system/servers.conf.txt");
|
||||
run("sed -Ei 's/[01234567890abcdef]+\.((my)?unraid\.net)/hash.\\1/gm;t' ".escapeshellarg("/$diag/system/servers.conf.txt")." 2>/dev/null");
|
||||
newline("/$diag/system/servers.conf.txt");
|
||||
|
||||
// BEGIN - third party plugins diagnostics
|
||||
|
||||
Reference in New Issue
Block a user