Skip to content

Commit

Permalink
Add comment in reverse_proxy.py.
Browse files Browse the repository at this point in the history
  • Loading branch information
robertodauria committed Jun 21, 2019
1 parent b448abe commit d4df7c9
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions server/mlabns/util/reverse_proxy.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,9 @@ def try_reverse_proxy_url(query, t):

experiment = query.path.strip('/')
rdp = get_reverse_proxy(experiment)

# ndt_ssl is only proxied during EST business hours, ndt7 doesn't have
# this restriction.
if random.uniform(0, 1) > rdp.probability:
return ""
if query.path == '/ndt_ssl' and not during_business_hours(t):
Expand Down

0 comments on commit d4df7c9

Please sign in to comment.