fix public frontends array

This commit is contained in:
Curt Tudor 2024-05-01 13:33:17 -06:00
parent 8e0d333460
commit 54941a60e0
No known key found for this signature in database
GPG Key ID: B3CD225AF4EC8E96
2 changed files with 2 additions and 2 deletions

View File

@ -21,7 +21,7 @@ program
// Create the zrok private share that will represent this web server
console.log("Now creating your private zrok share...")
let shr = await zrok.CreateShare(root, new zrok.ShareRequest(zrok.PROXY_BACKEND_MODE, zrok.PRIVATE_SHARE_MODE, "http-server", ["private"]));
let shr = await zrok.CreateShare(root, new zrok.ShareRequest(zrok.PROXY_BACKEND_MODE, zrok.PRIVATE_SHARE_MODE, "http-server", []));
console.log(`access your private HTTP Server on another machine using: 'zrok access private ${shr.Token}'`)
// Create a NodeJS Express web server that listens NOT on a TCP port, but for incoming Ziti connections to the private zrok share

View File

@ -22,7 +22,7 @@ program
let root = zrok.Load()
await zrok.init( root ).catch(( err: Error ) => { console.error(err); return process.exit(1) });
console.log("setting up zrok.CreateShare...")
let shr = await zrok.CreateShare(root, new zrok.ShareRequest(zrok.TCP_TUNNEL_BACKEND_MODE, zrok.PRIVATE_SHARE_MODE, "pastebin", ["private"]));
let shr = await zrok.CreateShare(root, new zrok.ShareRequest(zrok.TCP_TUNNEL_BACKEND_MODE, zrok.PRIVATE_SHARE_MODE, "pastebin", []));
console.log(`access your pastebin using 'pastefrom ${shr.Token}'`)
zrok.listener(