1. TortoiseHg
  2. TortoiseHg
  3. thg

Commits

Steve Borho  committed b1a6be4

serve: direct browser at 127.0.0.1:$port

this is the most robust way to connect to the local web server
Fixes #70

  • Participants
  • Parent commits 0bfa532
  • Branches default

Comments (0)

Files changed (1)

File hggtk/serve.py

View file
  • Ignore whitespace
 
         while not gservice or not hasattr(gservice, 'httpd'):
             time.sleep(0.1)
-        self._url = 'http://%s:%d/' % (gservice.httpd.fqaddr, port)
+        # gservice.httpd.fqaddr turned out to be unreliable, so use
+        # loopback addr directly
+        self._url = 'http://127.0.0.1:%d/' % (port)
         gobject.timeout_add(10, self.process_queue)
         
     def _stop_server(self):