Skip to content

Commit

Permalink
fix: increase time for waf retry
Browse files Browse the repository at this point in the history
  • Loading branch information
alandtse committed Mar 2, 2021
1 parent 6202eed commit 31b56cc
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion teslajsonpy/teslaproxy.py
Original file line number Diff line number Diff line change
Expand Up @@ -100,8 +100,9 @@ async def test_url(
return return_timer_countdown_refresh_html(
max(30 * (self.waf_retry - self.waf_limit), 120)
if self.waf_retry > self.waf_limit
else random.random() * self.waf_retry + 5,
else random.random() * self.waf_retry + 10,
f"Detected Tesla web application firewall block #{self.waf_retry}. Please wait and then reload the page or wait for the auto reload.",
False,
)
self.waf_retry = 0
if resp.content_type == "application/json":
Expand Down

0 comments on commit 31b56cc

Please sign in to comment.