Skip to content

Commit

Permalink
Update init.lua
Browse files Browse the repository at this point in the history
  • Loading branch information
dimaguy authored Jan 21, 2025
1 parent df7fabf commit 3b2afa9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/host/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ if not fs.isDir(sync_dir) then error(("%q is not a directory"):format(sync_dir),
table.insert(capabilities, "file:host")

-- Let's try to connect to the remote server
local url = ("%s:/localhost:8080/connect?id=%s&capabilities=%s"):format(
local url = ("%s://localhost:8080/connect?id=%s&capabilities=%s"):format(
args.http and "ws" or "wss", token, table.concat(capabilities, ","))
local remote, err = http.websocket(url)
if not remote then error("Cannot connect to ninja-catcher server: " .. err, 0) end
Expand Down

0 comments on commit 3b2afa9

Please sign in to comment.