Rename connection intitialization string
This commit is contained in:
@@ -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
2
lib.py
@@ -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")
|
||||
|
||||
|
||||
Reference in New Issue
Block a user