mirror of
https://gitlab.torproject.org/tpo/anti-censorship/pluggable-transports/snowflake.git
synced 2025-10-13 20:11:19 -04:00
Fix a local variable reference in BucketRateLimit.when.
ReferenceError: age is not defined snowflake.js:265:7 BucketRateLimit.prototype.when snowflake/proxy/build/snowflake.js:265:7 ProxyPair.prototype.flush snowflake/proxy/build/snowflake.js:558:63 bind/< snowflake/proxy/build/snowflake.js:10:56 ProxyPair.prototype.onClientToRelayMessage snowflake/proxy/build/snowflake.js:495:14 bind/< snowflake/proxy/build/snowflake.js:10:56
This commit is contained in:
parent
9545be1c9f
commit
5817c257c1
1 changed files with 1 additions and 1 deletions
|
@ -174,7 +174,7 @@ class BucketRateLimit
|
|||
|
||||
# How many seconds in the future will the limit expire?
|
||||
when: ->
|
||||
age()
|
||||
@age()
|
||||
(@amount - @capacity) / (@capacity / @time)
|
||||
|
||||
isLimited: ->
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue