author | Brendan Cully <brendan@kublai.com> |
Fri, 08 Dec 2006 17:10:40 -0800 | |
changeset 3836 | 925b1816c746 |
parent 3835 | d1ce5461beed |
child 3837 | 7df171ea50cd |
--- 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: