Only allow UI requests from safe hosts
This commit is contained in:
parent
d55fbd1728
commit
42874038e2
2 changed files with 27 additions and 1 deletions
|
@ -58,6 +58,8 @@ class UiServer:
|
|||
self.port = config.ui_port
|
||||
if self.ip == "*":
|
||||
self.ip = "" # Bind all
|
||||
self.allowed_hosts = set(["zero", "localhost:%s" % config.ui_port, "%s:%s" % (config.ui_ip, config.ui_port)])
|
||||
self.learn_allowed_host = True
|
||||
self.wrapper_nonces = []
|
||||
self.site_manager = SiteManager.site_manager
|
||||
self.sites = SiteManager.site_manager.list()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue