1
0
Fork 0
mirror of https://github.com/jellyfin/jellyfin-web synced 2025-03-30 19:56:21 +00:00

Do not validate HTTPS certificate settings when remote connections are disabled

This commit is contained in:
Mark Monteiro 2020-03-11 15:10:31 +01:00
parent 202adf7aaf
commit dc4fada827
2 changed files with 21 additions and 1 deletions

View file

@ -90,10 +90,11 @@ define(["loading", "libraryMenu", "globalize", "emby-checkbox", "emby-select"],
}
function validateHttps(form) {
var remoteAccess = form.querySelector("#chkRemoteAccess").checked;
var certPath = form.querySelector("#txtCertificatePath").value || null;
var httpsMode = form.querySelector("#selectHttpsMode").value;
if ("enabled" !== httpsMode && "required" !== httpsMode || certPath) {
if (!remoteAccess || ("enabled" !== httpsMode && "required" !== httpsMode || certPath)) {
return Promise.resolve();
}