[Pkg-privacy-commits] [onioncircuits] 47/62: Only update stream status and not label

Intrigeri intrigeri at moszumanska.debian.org
Thu Feb 18 20:20:06 UTC 2016


This is an automated email from the git hooks/post-receive script.

intrigeri pushed a commit to branch master
in repository onioncircuits.

commit fafb47539e947a81863af48589311050cb9a3a10
Author: Alan <alan at boum.org>
Date:   Thu Sep 10 23:10:44 2015 +0000

    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.
---
 tormonitor | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

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())
 

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-privacy/packages/onioncircuits.git



More information about the Pkg-privacy-commits mailing list