Merge pull request #1082 from grez911/master

Fix: ui_restrict now working with ui_password
This commit is contained in:
ZeroNet 2017-08-18 23:55:57 +02:00 committed by GitHub
commit ded6025eee

View file

@ -25,6 +25,9 @@ class UiRequestPlugin(object):
last_cleanup = time.time()
def route(self, path):
# Restict Ui access by ip
if config.ui_restrict and self.env['REMOTE_ADDR'] not in config.ui_restrict:
return self.error403(details=False)
if path.endswith("favicon.ico"):
return self.actionFile("src/Ui/media/img/favicon.ico")
else: