Migrate Tekton Dash Asia to Tailscale Funnel

This commit is contained in:
god
2026-07-13 16:40:30 +08:00
parent 2f3db01d0a
commit b6e1166c48
3 changed files with 10 additions and 6 deletions
+7 -3
View File
@@ -2,9 +2,10 @@ extends Node
# Standard Nakama Configuration
var nakama_server_key = "defaultkey"
var nakama_host = "switches-reported-chambers-field.trycloudflare.com"
var nakama_host = "thunderobot.tapir-atria.ts.net"
var nakama_port = 7350
var nakama_scheme = "http"
var nakama_scheme = "https"
var nakama_port_funnel = 443
# Core Nakama Variables
var client: NakamaClient
@@ -29,7 +30,10 @@ func _ready():
set_process(true)
func _init_client():
client = Nakama.create_client(nakama_server_key, nakama_host, nakama_port, nakama_scheme)
if nakama_host == "thunderobot.tapir-atria.ts.net":
client = Nakama.create_client(nakama_server_key, nakama_host, 443, "https")
else:
client = Nakama.create_client(nakama_server_key, nakama_host, nakama_port, nakama_scheme)
func set_server(host: String, port: int = 7350):
# Clean up the host string