# HG changeset patch # User Edouard Tisserant # Date 1695918487 -7200 # Node ID 832c257d5618c53d6aa86c78bca1dc549253d118 # Parent cf027bfe2653a8103b3a40cebefcce748a0bccd3 IDE: connect local runtime with '127.0.0.1' instead of 'localhost' Workaround localhost possibly resolving as ::1. leading to problems. diff -r cf027bfe2653 -r 832c257d5618 LocalRuntimeMixin.py --- a/LocalRuntimeMixin.py Thu Sep 28 18:14:57 2023 +0200 +++ b/LocalRuntimeMixin.py Thu Sep 28 18:28:07 2023 +0200 @@ -13,7 +13,7 @@ _exec = sys.executable if "darwin" not in sys.platform else sys.executable + 'w' LocalRuntimeInterpreterPath = os.environ.get("BEREMIZPYTHONPATH", _exec) -LocalHost = os.environ.get("BEREMIZ_LOCAL_HOST", "localhost") +LocalHost = os.environ.get("BEREMIZ_LOCAL_HOST", "127.0.0.1") class LocalRuntimeMixin(): diff -r cf027bfe2653 -r 832c257d5618 connectors/__init__.py --- a/connectors/__init__.py Thu Sep 28 18:14:57 2023 +0200 +++ b/connectors/__init__.py Thu Sep 28 18:28:07 2023 +0200 @@ -62,7 +62,7 @@ schemes += [scheme] -LocalHost = os.environ.get("BEREMIZ_LOCAL_HOST", "localhost") +LocalHost = os.environ.get("BEREMIZ_LOCAL_HOST", "127.0.0.1") def ConnectorFactory(uri, confnodesroot): """