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:
commit
cd5df9ec71
@ -44,7 +44,8 @@ class HttpFrontend(pykka.ThreadingActor, CoreListener):
|
|||||||
def _startup(self):
|
def _startup(self):
|
||||||
logger.debug('Starting HTTP server')
|
logger.debug('Starting HTTP server')
|
||||||
self.app = tornado.web.Application(self._get_request_handlers())
|
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(
|
logger.info(
|
||||||
'HTTP server running at http://%s:%s', self.hostname, self.port)
|
'HTTP server running at http://%s:%s', self.hostname, self.port)
|
||||||
tornado.ioloop.IOLoop.instance().start()
|
tornado.ioloop.IOLoop.instance().start()
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user