summaryrefslogtreecommitdiffstats
path: root/config/chroot_local-includes
diff options
context:
space:
mode:
authorintrigeri <intrigeri@boum.org>2020-10-07 14:19:36 +0000
committerintrigeri <intrigeri@boum.org>2020-10-07 14:19:36 +0000
commit4df1cc85003f1dba96472b73d1eb9253ac30eca2 (patch)
tree0673ee5f1875af06d4fc4395136288f412fcd059 /config/chroot_local-includes
parentb69663b42e5a07eefcc5d919e7ac4b4c1962fb83 (diff)
onion-grater: fix rate limiting of how often we try to connect to tor
commit 2a94042845a38d250e09d127805611add8a1a6d1 tried to implement this rate limiting, but the call to time.sleep(1) always raises an exception: NameError: name 'time' is not defined
Diffstat (limited to 'config/chroot_local-includes')
-rwxr-xr-xconfig/chroot_local-includes/usr/local/lib/onion-grater1
1 files changed, 1 insertions, 0 deletions
diff --git a/config/chroot_local-includes/usr/local/lib/onion-grater b/config/chroot_local-includes/usr/local/lib/onion-grater
index 376d427..15c932f 100755
--- a/config/chroot_local-includes/usr/local/lib/onion-grater
+++ b/config/chroot_local-includes/usr/local/lib/onion-grater
@@ -138,6 +138,7 @@ import stem.connection
import struct
import sys
import textwrap
+import time
import yaml
DEFAULT_LISTEN_ADDRESS = 'localhost'