vncserver: refactor

This commit is contained in:
Dmitry Maksyoma
2021-08-13 18:27:46 +12:00
parent f187aa9540
commit 7dc12ccb8a

View File

@@ -38,7 +38,7 @@ use Time::HiRes qw (sleep);
&PrepareDefaultsForPassingToXvnc(); &PrepareDefaultsForPassingToXvnc();
&DisableVncAuth(); &DisableLegacyVncAuth();
&EnsureAtLeastOneKasmUserExists(); &EnsureAtLeastOneKasmUserExists();
&SetupXauthorityFile(); &SetupXauthorityFile();
@@ -769,7 +769,7 @@ sub LoadSystemThenUserThenMandatoryConfigs {
LoadConfig($vncSystemConfigMandatoryFile, 1); LoadConfig($vncSystemConfigMandatoryFile, 1);
} }
sub DisableVncAuth() { sub DisableLegacyVncAuth() {
# Disable vnc auth, kasmvnc uses https basic auth # Disable vnc auth, kasmvnc uses https basic auth
system("echo 'WrLNwLrcrxM=' | base64 -d > $vncUserDir/passwd"); system("echo 'WrLNwLrcrxM=' | base64 -d > $vncUserDir/passwd");
} }