Handle request using global onion address
This commit is contained in:
parent
1ad966bd80
commit
81e96d25ba
1 changed files with 1 additions and 1 deletions
|
@ -63,7 +63,7 @@ class FileRequest(object):
|
||||||
# Don't allow other sites than locked
|
# Don't allow other sites than locked
|
||||||
if "site" in params and self.connection.target_onion:
|
if "site" in params and self.connection.target_onion:
|
||||||
valid_sites = self.connection.getValidSites()
|
valid_sites = self.connection.getValidSites()
|
||||||
if params["site"] not in valid_sites:
|
if params["site"] not in valid_sites and valid_sites != ["global"]:
|
||||||
self.response({"error": "Invalid site"})
|
self.response({"error": "Invalid site"})
|
||||||
self.connection.log(
|
self.connection.log(
|
||||||
"Site lock violation: %s not in %s, target onion: %s" %
|
"Site lock violation: %s not in %s, target onion: %s" %
|
||||||
|
|
Loading…
Reference in a new issue