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..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" -version="1.10.2" +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 2f86160..fbd0996 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) @@ -93,10 +93,10 @@ 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) + _server.listen(port, "127.0.0.1") _port = port if not _server.is_listening():