aboutsummaryrefslogtreecommitdiffstats
path: root/settings.py
diff options
context:
space:
mode:
authorJames Taylor <user234683@users.noreply.github.com>2020-10-25 11:15:59 -0700
committerJames Taylor <user234683@users.noreply.github.com>2020-10-25 11:15:59 -0700
commit3a081a9c465828b3491d15b673074b7dbdcfc822 (patch)
treec391332acabb89395820fec894bc76606a9f45b2 /settings.py
parentbcaec7b7d3bb6086ec2f6d0726a641e67a524789 (diff)
downloadyt-local-3a081a9c465828b3491d15b673074b7dbdcfc822.tar.lz
yt-local-3a081a9c465828b3491d15b673074b7dbdcfc822.tar.xz
yt-local-3a081a9c465828b3491d15b673074b7dbdcfc822.zip
Automatically change tor circuit once if ip is blocked
Use stem library to send a new identity signal via the tor control port. See #20
Diffstat (limited to 'settings.py')
-rw-r--r--settings.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/settings.py b/settings.py
index cf1564e..0b6f578 100644
--- a/settings.py
+++ b/settings.py
@@ -30,6 +30,13 @@ SETTINGS_INFO = collections.OrderedDict([
'category': 'network',
}),
+ ('tor_control_port', {
+ 'type': int,
+ 'default': 9151,
+ 'comment': '',
+ 'category': 'network',
+ }),
+
('port_number', {
'type': int,
'default': 8080,