Mercurial > hg
changeset 3836:925b1816c746
Fix hg serve -6 getsockname handling
author | Brendan Cully <brendan@kublai.com> |
---|---|
date | Fri, 08 Dec 2006 17:10:40 -0800 |
parents | d1ce5461beed |
children | 7df171ea50cd |
files | mercurial/hgweb/server.py |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/mercurial/hgweb/server.py Fri Dec 08 22:01:05 2006 -0200 +++ b/mercurial/hgweb/server.py Fri Dec 08 17:10:40 2006 -0800 @@ -201,8 +201,8 @@ self.reqmaker = wsgiapplication(self.make_handler) self.daemon_threads = True - addr, port = self.socket.getsockname() - if addr == '0.0.0.0': + addr, port = self.socket.getsockname()[:2] + if addr in ('0.0.0.0', '::'): addr = socket.gethostname() else: try: