[tor-commits] [arm/master] Renaming startup.controlPassword to tor.password
atagar at torproject.org
atagar at torproject.org
Sun Sep 15 22:29:21 UTC 2013
commit a2f19e361120f215b4a11d953ddda8f7becdc7b4
Author: Damian Johnson <atagar at torproject.org>
Date: Thu Sep 12 08:56:28 2013 -0700
Renaming startup.controlPassword to tor.password
I'm changing us to a 'tor.*' namespace for tor parameters. This certainly fits
the bill.
---
arm/starter.py | 10 +++++-----
armrc.sample | 2 +-
2 files changed, 6 insertions(+), 6 deletions(-)
diff --git a/arm/starter.py b/arm/starter.py
index 834eceb..057fb86 100644
--- a/arm/starter.py
+++ b/arm/starter.py
@@ -38,7 +38,7 @@ import stem.util.system
LOG_DUMP_PATH = os.path.expanduser("~/.arm/log")
CONFIG = stem.util.conf.config_dict("arm", {
- "startup.controlPassword": None,
+ "tor.password": None,
"startup.blindModeEnabled": False,
"startup.events": "N3",
"msg.help": "",
@@ -296,7 +296,7 @@ def main():
chroot = arm.util.torTools.get_chroot()
try:
- controller.authenticate(password = CONFIG["startup.controlPassword"], chroot_path = chroot)
+ controller.authenticate(password = CONFIG["tor.password"], chroot_path = chroot)
except (stem.connection.MissingPassword, stem.connection.IncorrectPassword) as exc:
if isinstance(stem.connection.IncorrectPassword, exc):
print "Password found in '%s' was incorrect" % args.config
@@ -315,12 +315,12 @@ def main():
# Removing references to the controller password so the memory can be
# freed. Without direct memory access this is about the best we can do.
- if "startup.controlPassword" in config._contents:
- del config._contents["startup.controlPassword"]
+ if "tor.password" in config._contents:
+ del config._contents["tor.password"]
pwLineNum = None
for i in range(len(config._raw_contents)):
- if config._raw_contents[i].strip().startswith("startup.controlPassword"):
+ if config._raw_contents[i].strip().startswith("tor.password"):
pwLineNum = i
break
diff --git a/armrc.sample b/armrc.sample
index 89e3878..a43105f 100644
--- a/armrc.sample
+++ b/armrc.sample
@@ -1,5 +1,5 @@
# Startup options
-startup.controlPassword
+tor.password
startup.blindModeEnabled false
startup.events N3
startup.dataDirectory ~/.arm
More information about the tor-commits
mailing list