Kiln » TortoiseHg » TortoiseHg
Clone URL:  
Pushed to one repository · View In Graph Contained in 0.7.1, 0.7.2, and 0.7.3

serve: direct browser at 127.0.0.1:$port

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

Changeset b1a6be4bc66a

Parent 0bfa5327d356

by Steve Borho

Changes to one file · Browse files at b1a6be4bc66a Showing diff from parent 0bfa5327d356 Diff from another changeset...

Change 1 of 1 Show Entire File hggtk/​serve.py Stacked
 
232
233
234
235
 
 
 
236
237
238
 
232
233
234
 
235
236
237
238
239
240
@@ -232,7 +232,9 @@
    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):