Commit ba896c9e authored by Georg Koppen's avatar Georg Koppen
Browse files

Merge branch 'maint-1.1' into master

parents dd7ece27 40754a33
......@@ -197,7 +197,9 @@ class Relay:
# Therefore, catch the exception here.
try:
if self.exit_policy:
return self.exit_policy.can_exit_to(port=port)
# Using `strict` to ensure it can exit to ALL domains
# and ips and that port. See #40006.
return self.exit_policy.can_exit_to(port=port, strict=True)
except TypeError:
return False
return False
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment