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();
&DisableVncAuth();
&DisableLegacyVncAuth();
&EnsureAtLeastOneKasmUserExists();
&SetupXauthorityFile();
@@ -769,7 +769,7 @@ sub LoadSystemThenUserThenMandatoryConfigs {
LoadConfig($vncSystemConfigMandatoryFile, 1);
}
sub DisableVncAuth() {
sub DisableLegacyVncAuth() {
# Disable vnc auth, kasmvnc uses https basic auth
system("echo 'WrLNwLrcrxM=' | base64 -d > $vncUserDir/passwd");
}