Show More
@@ -216,14 +216,10 b' def create_server(ui, repo):' | |||||
216 | return hgwebobj |
|
216 | return hgwebobj | |
217 | self.reqmaker = wsgiapplication(make_handler) |
|
217 | self.reqmaker = wsgiapplication(make_handler) | |
218 |
|
218 | |||
219 | addr, port = self.socket.getsockname()[:2] |
|
219 | addr = address | |
220 |
if addr in (' |
|
220 | if addr in ('', '::'): | |
221 | addr = socket.gethostname() |
|
221 | addr = socket.gethostname() | |
222 | else: |
|
222 | ||
223 | try: |
|
|||
224 | addr = socket.gethostbyaddr(addr)[0] |
|
|||
225 | except socket.error: |
|
|||
226 | pass |
|
|||
227 | self.addr, self.port = addr, port |
|
223 | self.addr, self.port = addr, port | |
228 |
|
224 | |||
229 | class IPv6HTTPServer(MercurialHTTPServer): |
|
225 | class IPv6HTTPServer(MercurialHTTPServer): |
General Comments 0
You need to be logged in to leave comments.
Login now