serve: Don't require force_privacy_mode to be defined on config

This commit is contained in:
rlaphoenix 2022-08-04 08:22:06 +01:00
parent c9288dc391
commit 5b13e1a689
1 changed files with 1 additions and 1 deletions

View File

@ -204,7 +204,7 @@ async def challenge(request: web.Request) -> web.Response:
}, status=400) }, status=400)
# enforce service certificate (opt-in) # enforce service certificate (opt-in)
if request.app["config"]["force_privacy_mode"] and not cdm._sessions[session_id].service_certificate: if request.app["config"].get("force_privacy_mode") and not cdm._sessions[session_id].service_certificate:
return web.json_response({ return web.json_response({
"status": 403, "status": 403,
"message": "No Service Certificate set but Privacy Mode is Enforced." "message": "No Service Certificate set but Privacy Mode is Enforced."