[tor-commits] [meek/master] Update comment that claimed we listen on a fixed port.

dcf at torproject.org dcf at torproject.org
Sat Apr 26 03:36:28 UTC 2014


commit feb40572ec394664569e28176542bf13fb9de226
Author: David Fifield <david at bamsoftware.com>
Date:   Fri Apr 25 20:35:37 2014 -0700

    Update comment that claimed we listen on a fixed port.
    
    That used to be the case but no longer. Noticed by gk in
    https://trac.torproject.org/projects/tor/ticket/11183#comment:20.
---
 firefox/components/main.js |    9 +++++----
 1 file changed, 5 insertions(+), 4 deletions(-)

diff --git a/firefox/components/main.js b/firefox/components/main.js
index 2890b37..3db395c 100644
--- a/firefox/components/main.js
+++ b/firefox/components/main.js
@@ -1,10 +1,11 @@
 // This is an extension that allows external programs to make HTTP requests
 // using the browser's networking libraries.
 //
-// The extension opens a TCP socket listening on localhost (port 7000). When it
-// receives a connection, it reads a 4-byte big-endian length field, then tries
-// to read that many bytes of data. The data is UTF-8–encoded JSON, having the
-// format
+// The extension opens a TCP socket listening on localhost on an ephemeral port.
+// It writes the port number in a recognizable format to stdout so that a parent
+// process can read it and connect. When the extension receives a connection, it
+// reads a 4-byte big-endian length field, then tries to read that many bytes of
+// data. The data is UTF-8–encoded JSON, having the format
 //  {
 //      "method": "POST",
 //      "url": "https://www.google.com/",



More information about the tor-commits mailing list