Skip to content
Snippets Groups Projects
Commit 190906a6 authored by jkerdreu's avatar jkerdreu
Browse files

Fix debian ipv6 issue


git-svn-id: https://redmine.imt-atlantique.fr/svn/xaal/code/Python/branches/0.7@2832 b32b6428-25c9-4566-ad07-03861ab6144f
parent d8a4cbbd
No related branches found
No related tags found
No related merge requests found
......@@ -375,6 +375,7 @@ async def console(locals=locals(),port=None):
return aioconsole.AsynchronousConsole(locals=locals, streams=streams)
# start the console
try:
await aioconsole.start_interactive_server(host='localhost', port=port,factory=factory,banner=banner)
# debian with ipv6 disabled still state that localhost is ::1, which broke aioconsole
await aioconsole.start_interactive_server(host='127.0.0.1', port=port,factory=factory,banner=banner)
except OSError:
logger.warning('Unable to run console')
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment