handle query strings, pass gate url to child process

This commit is contained in:
Nordup 2025-08-23 16:13:52 +07:00
parent 55718913c4
commit 12eb00bccc
5 changed files with 44 additions and 26 deletions

View file

@ -38,7 +38,7 @@ func start(_pipe: Dictionary, _gate: Gate) -> void:
func create_log_file() -> void:
var folder = gate.url.replace("http://", "").replace("https://", "").replace(".gate", "")
var folder = gate.url.split("?")[0].replace("http://", "").replace("https://", "").replace(".gate", "")
folder = folder.replace(":", "_") # remove ':' before port
var path = LOG_FOLDER + "/" + folder + "/" + LOG_FILE