mirror of
https://github.com/ZeroTier/ZeroTierOne
synced 2025-07-11 07:36:38 -07:00
.
This commit is contained in:
parent
c9fd8de007
commit
cf51961d52
5 changed files with 87 additions and 80 deletions
14
nodejs-zt1-client/test-controller.js
Normal file
14
nodejs-zt1-client/test-controller.js
Normal file
|
@ -0,0 +1,14 @@
|
|||
var ZT1Client = require('./index.js').ZT1Client;
|
||||
|
||||
var zt1c = new ZT1Client('http://127.0.0.1:9993/','5d6181b71fae2684f9cc64ed');
|
||||
|
||||
zt1c.status(function(err,status) {
|
||||
if (err)
|
||||
console.log(err);
|
||||
console.log(status);
|
||||
zt1c.networks(function(err,networks) {
|
||||
if (err)
|
||||
console.log(err);
|
||||
console.log(networks);
|
||||
});
|
||||
});
|
Loading…
Add table
Add a link
Reference in a new issue