Serve: Properly enforce privacy mode
This commit is contained in:
parent
e8226f605c
commit
16fd204743
|
@ -251,7 +251,9 @@ async def get_license_challenge(request: web.Request) -> web.Response:
|
||||||
}, status=400)
|
}, status=400)
|
||||||
|
|
||||||
# enforce service certificate (opt-in)
|
# enforce service certificate (opt-in)
|
||||||
if request.app["config"].get("force_privacy_mode") and not cdm.get_service_certificate(session_id):
|
if request.app["config"].get("force_privacy_mode"):
|
||||||
|
privacy_mode = True
|
||||||
|
if not cdm.get_service_certificate(session_id):
|
||||||
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."
|
||||||
|
|
Loading…
Reference in New Issue