invalid ip addr on hg serve
Giorgos Keramidas
keramida at ceid.upatras.gr
Mon Mar 31 11:26:08 CDT 2008
On Mon, 31 Mar 2008 10:24:49 -0500, Matt Mackall <mpm at selenic.com> wrote:
> Wow is this thread getting long without any progress. I'll gladly take a
> patch to hide 0.0.0.0 as "*" or "".
Since this is a 'display' issue, does the following look ok?
%%%
diff -r 0231f763ebc8 mercurial/commands.py
--- a/mercurial/commands.py Wed Mar 26 10:12:10 2008 -0700
+++ b/mercurial/commands.py Mon Mar 31 19:25:57 2008 +0300
@@ -2527,8 +2527,11 @@
if port == ':80':
port = ''
+ laddr = self.httpd.fqaddr
+ if laddr = '0.0.0.0':
+ laddr = '*'
ui.status(_('listening at http://%s%s/%s (%s:%d)\n') %
- (self.httpd.fqaddr, port, prefix, self.httpd.addr, self.httpd.port))
+ (laddr, port, prefix, self.httpd.addr, self.httpd.port))
def run(self):
self.httpd.serve_forever()
%%%
More information about the Mercurial
mailing list