mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-06-17 11:10:23 +00:00
cockpit: Filter out localhost URLs from displayed access list
Signed-off-by: James Valleroy <jvalleroy@mailbox.org>
This commit is contained in:
parent
4805e01929
commit
8d51adcc05
@ -41,6 +41,7 @@ class CockpitAppView(AppView):
|
||||
|
||||
def get_context_data(self, *args, **kwargs):
|
||||
context = super().get_context_data(**kwargs)
|
||||
context['urls'] = get_origin_domains(load_augeas())
|
||||
urls = get_origin_domains(load_augeas())
|
||||
context['urls'] = [url for url in urls if 'localhost' not in url]
|
||||
|
||||
return context
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user