summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdam Ierymenko <adam.ierymenko@gmail.com>2017-04-04 12:39:14 -0700
committerAdam Ierymenko <adam.ierymenko@gmail.com>2017-04-04 12:39:14 -0700
commitff2b219abd48d246fb7096d76c7044db7afc2d5d (patch)
tree5d64b25328bcde29fcb4949e830cfcae0158a7d9
parent33c3af752bf8ff505bf8d191bf36aad25f35ada3 (diff)
downloadinfinitytier-ff2b219abd48d246fb7096d76c7044db7afc2d5d.tar.gz
infinitytier-ff2b219abd48d246fb7096d76c7044db7afc2d5d.zip
root-watcher code
-rw-r--r--root-watcher/package.json14
-rw-r--r--root-watcher/zerotier-root-watcher.js5
2 files changed, 19 insertions, 0 deletions
diff --git a/root-watcher/package.json b/root-watcher/package.json
new file mode 100644
index 00000000..f6eb680e
--- /dev/null
+++ b/root-watcher/package.json
@@ -0,0 +1,14 @@
+{
+ "name": "zerotier-root-watcher",
+ "version": "1.0.0",
+ "description": "Simple background service to watch a cluster of roots and record peer info into a database",
+ "main": "zerotier-root-watcher.js",
+ "scripts": {
+ "test": "echo \"Error: no test specified\" && exit 1"
+ },
+ "author": "ZeroTier, Inc. <contact@zerotier.com>",
+ "license": "GPL-3.0",
+ "dependencies": {
+ "pg": "^6.1.5"
+ }
+}
diff --git a/root-watcher/zerotier-root-watcher.js b/root-watcher/zerotier-root-watcher.js
new file mode 100644
index 00000000..c6ce6be0
--- /dev/null
+++ b/root-watcher/zerotier-root-watcher.js
@@ -0,0 +1,5 @@
+'use strict';
+
+const pg = require('pg');
+const zlib = require('zlib');
+