summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlan <alan@boum.org>2015-09-10 23:10:44 +0000
committerAlan <alan@boum.org>2015-09-10 23:10:47 +0000
commitfafb47539e947a81863af48589311050cb9a3a10 (patch)
tree46d22c99b327a7ba3e7078dec704a2d5f39ba159
parent5e1a10cfedc1faf0de1acbdeaf74d97702266180 (diff)
Only update stream status and not label
For every stream, tor will send something like: 650 STREAM 3709 NEW 0 www.example.org:80 SOURCE_ADDR=127.0.0.1:42592 PURPOSE=USER 650 STREAM 3709 SENTCONNECT 95 www.example.org:80 650 STREAM 3709 REMAP 95 93.184.216.34:80 SOURCE=EXIT 650 STREAM 3709 SUCCEEDED 95 93.184.216.34:80 650 STREAM 3709 CLOSED 95 93.184.216.34:80 REASON=DONE If we update the target when we receive the REMAP event, then we replace the hostname by its IP. In this commit we only update the stream status, but keep the old target.
-rwxr-xr-xtormonitor4
1 files changed, 3 insertions, 1 deletions
diff --git a/tormonitor b/tormonitor
index ffc2ee3..adca2d0 100755
--- a/tormonitor
+++ b/tormonitor
@@ -423,7 +423,9 @@ class TorMonitorWindow(Gtk.ApplicationWindow):
stream_iter = self.add_stream(stream)
else:
# The stream didn't change parent. Update it.
- self._treestore.set(stream_iter, 2, self.stream_label(stream))
+ #
+ # We should not update the stream label because this would
+ # replace the hostname by its IP address.
if stream.status:
self._treestore.set(stream_iter, 3, str(stream.status).capitalize())