Rename connection intitialization string

This commit is contained in:
Bridget
2020-04-13 15:15:05 +02:00
parent 551befc4ae
commit 39e2a8ee74
2 changed files with 2 additions and 2 deletions

View File

@@ -55,7 +55,7 @@ default
if(llJsonGetValue(body, ["secret_key"]) == SECRET_KEY)
{
string command = llJsonGetValue(body, ["command"]);
if(command == "init")
if(command == "connect")
{
respond(id, 200, "uuid", llGetKey());
connected = 1;

2
lib.py
View File

@@ -35,7 +35,7 @@ def connect(url: str, secret_key: str) -> str:
"""Connect to the given URL.
Returns the UUID of the endpoint."""
uuid = send_cmd(url, secret_key, "init").get("uuid", None)
uuid = send_cmd(url, secret_key, "connect").get("uuid", None)
if not uuid:
raise InvalidResponseError("Error: Remote did not return its UUID")