Fix #2038: Unable to attach docker with version 5

Fix ptvsd.adapter to respect the --host command-line switch again.
This commit is contained in:
Pavel Minaev 2020-01-15 11:45:22 -08:00 committed by Pavel Minaev
parent 74ff526c90
commit 2695b3f10f

View file

@ -58,7 +58,7 @@ def main(args):
else:
endpoints = {"server": {"host": server_host, "port": server_port}}
try:
ide_host, ide_port = ide.listen(port=args.port)
ide_host, ide_port = ide.listen(host=args.host, port=args.port)
except Exception as exc:
if args.for_server is None:
raise