From ee828313708e3c7905cdd6fe13b973edaf58d397 Mon Sep 17 00:00:00 2001 From: Jarrod Johnson Date: Tue, 11 Jun 2019 11:06:59 -0400 Subject: [PATCH] Do not flag file: as insecure Locally hosted media should not be considered insecure. --- confluent_client/bin/nodemedia | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/confluent_client/bin/nodemedia b/confluent_client/bin/nodemedia index 84966dce..b4c95723 100644 --- a/confluent_client/bin/nodemedia +++ b/confluent_client/bin/nodemedia @@ -83,7 +83,8 @@ def list_media(noderange, media): for node in res.get('databynode', []): url = res['databynode'][node].get('url', None) name = res['databynode'][node].get('name', None) - if url and not res['databynode'][node].get('secure', False): + if (url and not url.startswith('file:') and + not res['databynode'][node].get('secure', False)): name += ' (insecure)' if not name: continue