diff --git a/sdk/nodejs/examples/http-server/src/index.ts b/sdk/nodejs/examples/http-server/src/index.ts index 190dcdb4..3b116bc0 100644 --- a/sdk/nodejs/examples/http-server/src/index.ts +++ b/sdk/nodejs/examples/http-server/src/index.ts @@ -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 diff --git a/sdk/nodejs/examples/pastebin/src/index.ts b/sdk/nodejs/examples/pastebin/src/index.ts index 25d7d43a..2f8019f1 100644 --- a/sdk/nodejs/examples/pastebin/src/index.ts +++ b/sdk/nodejs/examples/pastebin/src/index.ts @@ -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(