Skip to content

Commit

Permalink
Allow private addresses when enforcing is disabled (getredash#4983)
Browse files Browse the repository at this point in the history
  • Loading branch information
gabrieldutra authored and andrewdever committed Oct 5, 2020
1 parent e98810f commit 73f2685
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion redash/query_runner/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -258,7 +258,7 @@ def get_auth(self):
return None

def get_response(self, url, auth=None, http_method="get", **kwargs):
if is_private_address(url):
if is_private_address(url) and settings.ENFORCE_PRIVATE_ADDRESS_BLOCK:
raise Exception("Can't query private addresses.")

# Get authentication values if not given
Expand Down

0 comments on commit 73f2685

Please sign in to comment.