git ssb

15+

ansuz / dnssb



Tree: b3dbb252f189d256c891324515d83ad97f2ffee6

Files: b3dbb252f189d256c891324515d83ad97f2ffee6 / lib / index.js

655 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
13// run as a scuttlebot plugin
14var plugin = Lib;
15var pkg = require("../package");
16plugin.name = "dns";
17plugin.version = "1.0.0";
18plugin.manifest = {};
19plugin.init = function (sbot, config) {
20 var port = config.dns && config.dns.port || 53053;
21 var host = config.dns && config.dns.host || config.host || "127.0.0.1";
22 Lib.server.listen(sbot, port, host, function () {
23 console.log("%s listening on %s:%s", pkg.name, host, port);
24 });
25};
26

Built with git-ssb-web