aboutsummaryrefslogtreecommitdiff
path: root/client/service/service.gd
diff options
context:
space:
mode:
authornokoe <nokoe@mailbox.org>2025-07-08 00:08:18 +0200
committernokoe <nokoe@mailbox.org>2025-07-08 00:10:03 +0200
commitf1ac43aaac6f330fc8e7217437b52c0b2ce836c8 (patch)
tree93f878387d56230c344da60aa14121f7787a7fd1 /client/service/service.gd
parentac1ecb0876d57d73cee54127f5ba793095808b92 (diff)
downloadhurrycurry-f1ac43aaac6f330fc8e7217437b52c0b2ce836c8.tar
hurrycurry-f1ac43aaac6f330fc8e7217437b52c0b2ce836c8.tar.bz2
hurrycurry-f1ac43aaac6f330fc8e7217437b52c0b2ce836c8.tar.zst
add server bind settings; fixes #348
Diffstat (limited to 'client/service/service.gd')
-rw-r--r--client/service/service.gd5
1 files changed, 4 insertions, 1 deletions
diff --git a/client/service/service.gd b/client/service/service.gd
index 9695714f..d06ad364 100644
--- a/client/service/service.gd
+++ b/client/service/service.gd
@@ -27,6 +27,9 @@ func exe_path():
return "false"
func test_port():
return 25565
+func test_host():
+ return "127.0.0.1"
+
var thread = null
var pid = null
@@ -82,7 +85,7 @@ func _server_exec():
var ok = false
while not ok:
var conn = StreamPeerTCP.new()
- if conn.connect_to_host("127.0.0.1", test_port()) == OK:
+ if conn.connect_to_host(test_host(), test_port()) == OK:
while conn.poll() == OK:
if conn.get_status() == StreamPeerTCP.STATUS_ERROR: break
elif conn.get_status() == StreamPeerTCP.STATUS_CONNECTED: ok = true; break