From 1890e386fdedabf891e9846764e89c56fae9cedf Mon Sep 17 00:00:00 2001 From: Dustie <77035922+DustieDog@users.noreply.github.com> Date: Tue, 11 Nov 2025 12:24:31 -0330 Subject: [PATCH 1/3] fix: Windows loopback error Fixes Windows not being able to connect to 0.0.0.0 --- addons/vest/cli/vest-cli-runner.gd | 2 +- addons/vest/plugin.cfg | 2 +- addons/vest/runner/vest-daemon-runner.gd | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/addons/vest/cli/vest-cli-runner.gd b/addons/vest/cli/vest-cli-runner.gd index c15fdb1..438b5a7 100644 --- a/addons/vest/cli/vest-cli-runner.gd +++ b/addons/vest/cli/vest-cli-runner.gd @@ -65,7 +65,7 @@ func _connect(params: VestCLI.Params): var host := params.host var port := params.port - if not host: host = "0.0.0.0" + if not host: host = "127.0.0.1" if port == -1: port = 54932 var peer := StreamPeerTCP.new() diff --git a/addons/vest/plugin.cfg b/addons/vest/plugin.cfg index fae928a..114ec23 100644 --- a/addons/vest/plugin.cfg +++ b/addons/vest/plugin.cfg @@ -3,5 +3,5 @@ name="vest" description="A unit testing library for Godot" author="Tamás Gálffy" -version="1.10.2" +version="1.10.3" script="plugin.gd" diff --git a/addons/vest/runner/vest-daemon-runner.gd b/addons/vest/runner/vest-daemon-runner.gd index 2f86160..dda25b7 100644 --- a/addons/vest/runner/vest-daemon-runner.gd +++ b/addons/vest/runner/vest-daemon-runner.gd @@ -41,7 +41,7 @@ func _run_with_params(params: VestCLI.Params) -> VestResult.Suite: return null # Start process - params.host = "0.0.0.0" + params.host = "127.0.0.1" params.port = _port if not _is_debug_run: VestCLI.run(params) From a1771c3a7f75bab4b28c1609dbdbbaa9b87bdad9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tam=C3=A1s=20G=C3=A1lffy?= Date: Thu, 13 Nov 2025 08:54:11 +0100 Subject: [PATCH 2/3] listen only on localhost --- addons/vest/plugin.cfg | 2 +- addons/vest/runner/vest-daemon-runner.gd | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/addons/vest/plugin.cfg b/addons/vest/plugin.cfg index 114ec23..f534949 100644 --- a/addons/vest/plugin.cfg +++ b/addons/vest/plugin.cfg @@ -2,6 +2,6 @@ name="vest" description="A unit testing library for Godot" -author="Tamás Gálffy" +author="Tamás Gálffy and contributors" version="1.10.3" script="plugin.gd" diff --git a/addons/vest/runner/vest-daemon-runner.gd b/addons/vest/runner/vest-daemon-runner.gd index dda25b7..574286c 100644 --- a/addons/vest/runner/vest-daemon-runner.gd +++ b/addons/vest/runner/vest-daemon-runner.gd @@ -93,7 +93,7 @@ func _start(port: int = -1): if port < 0: for i in range(32): port = randi_range(49152, 65535) - if _server.listen(port) == OK: + if _server.listen(port, "127.0.0.1") == OK: break else: _server.listen(port) From 3e26c15909f1b3d815ecc4b49d28382ceaf24a86 Mon Sep 17 00:00:00 2001 From: Dustie <77035922+DustieDog@users.noreply.github.com> Date: Thu, 13 Nov 2025 04:56:27 -0330 Subject: [PATCH 3/3] further localhost listening Also listens to localhost if port is set. --- addons/vest/runner/vest-daemon-runner.gd | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/vest/runner/vest-daemon-runner.gd b/addons/vest/runner/vest-daemon-runner.gd index 574286c..fbd0996 100644 --- a/addons/vest/runner/vest-daemon-runner.gd +++ b/addons/vest/runner/vest-daemon-runner.gd @@ -96,7 +96,7 @@ func _start(port: int = -1): if _server.listen(port, "127.0.0.1") == OK: break else: - _server.listen(port) + _server.listen(port, "127.0.0.1") _port = port if not _server.is_listening():