From 2695b3f10fe2fb41c2df77b541bba5bfeb4d4082 Mon Sep 17 00:00:00 2001 From: Pavel Minaev Date: Wed, 15 Jan 2020 11:45:22 -0800 Subject: [PATCH] Fix #2038: Unable to attach docker with version 5 Fix ptvsd.adapter to respect the --host command-line switch again. --- src/ptvsd/adapter/__main__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ptvsd/adapter/__main__.py b/src/ptvsd/adapter/__main__.py index 4b420d78..7af3003e 100644 --- a/src/ptvsd/adapter/__main__.py +++ b/src/ptvsd/adapter/__main__.py @@ -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