Merge pull request #770 from ZenithDK/fix/hostname_colon

Tornado redefines '::' to IPv6 only, so set '::' to None to get expected...
This commit is contained in:
Stein Magnus Jodal 2014-06-28 00:51:45 +02:00
commit cd5df9ec71

View File

@ -44,7 +44,8 @@ class HttpFrontend(pykka.ThreadingActor, CoreListener):
def _startup(self):
logger.debug('Starting HTTP server')
self.app = tornado.web.Application(self._get_request_handlers())
self.app.listen(self.port, self.hostname)
self.app.listen(self.port,
self.hostname if self.hostname != '::' else None)
logger.info(
'HTTP server running at http://%s:%s', self.hostname, self.port)
tornado.ioloop.IOLoop.instance().start()