[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[tor-commits] [stem/master] Fix exit policy caching keys
commit ca93c11caf797546a0bd45574544b7ca9b622383
Author: Damian Johnson <atagar@xxxxxxxxxxxxxx>
Date: Tue Apr 17 09:09:52 2018 -0700
Fix exit policy caching keys
Oops, great catch from dmr on #25423. We had one spot referring to the key as
'exit_policy' and two that were 'exitpolicy'. Sandardizing on the former.
---
stem/control.py | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/stem/control.py b/stem/control.py
index 3db4d35a..93f8fc19 100644
--- a/stem/control.py
+++ b/stem/control.py
@@ -1073,7 +1073,7 @@ class Controller(BaseController):
self._set_cache(dict((k, None) for k in event.config), 'getconf')
if 'exitpolicy' in event.config.keys():
- self._set_cache({'exitpolicy': None})
+ self._set_cache({'exit_policy': None})
self.add_event_listener(_confchanged_listener, EventType.CONF_CHANGED)
@@ -2411,7 +2411,7 @@ class Controller(BaseController):
to_cache[param] = value
if param == 'exitpolicy':
- self._set_cache({'exitpolicy': None})
+ self._set_cache({'exit_policy': None})
elif 'hidden' in param:
self._set_cache({'hidden_service_conf': None})
_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits