aboutsummaryrefslogtreecommitdiff
path: root/client/service/service.gd
diff options
context:
space:
mode:
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