git ssb

15+

ansuz / dnssb



Tree: d3027fee807fce808aec9f7948f0719338d790e2

Files: d3027fee807fce808aec9f7948f0719338d790e2 / lib / index.js

690 bytesRaw
1var Lib = module.exports = {};
2
3Lib.publish = require("./publish");
4
5Lib.server = require("./server");
6
7Lib.dump = require("./dump");
8
9Lib.query = require("./query");
10
11Lib.parse = require("./parse");
12
13Lib.format = require("./format");
14
15// run as a scuttlebot plugin
16var plugin = Lib;
17var pkg = require("../package");
18plugin.name = "dns";
19plugin.version = "1.0.0";
20plugin.manifest = {};
21plugin.init = function (sbot, config) {
22 var port = config.dns && config.dns.port || 53053;
23 var host = config.dns && config.dns.host || config.host || "127.0.0.1";
24 Lib.server.listen(sbot, port, host, function () {
25 console.log("%s listening on %s:%s", pkg.name, host, port);
26 });
27};
28

Built with git-ssb-web