commit 3ce772e21ca395993d3ad2878cc394a768f5be79 Author: Arturo Filastò arturo@filasto.net Date: Sat May 21 19:33:42 2016 +0200
Fix regression bug that lead to exit_ip and exit_name not being included
This closes #509 --- ooni/templates/httpt.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/ooni/templates/httpt.py b/ooni/templates/httpt.py index e608f8f..fe283a7 100644 --- a/ooni/templates/httpt.py +++ b/ooni/templates/httpt.py @@ -30,7 +30,7 @@ class StreamListener(StreamListenerMixin): def stream_succeeded(self, stream): host=self.request['url'].split('/')[2] try: - if stream.target_host == host and len(self.request['tor']) == 1: + if stream.target_host == host and self.request['tor']['exit_ip'] is None: self.request['tor']['exit_ip'] = stream.circuit.path[-1].ip self.request['tor']['exit_name'] = stream.circuit.path[-1].name config.tor_state.stream_listeners.remove(self)