added the mDNS options to the example config

这个提交包含在:
tigerbot 2017-05-24 11:42:17 -06:00
父节点 1e3021c669
当前提交 be67f04afa
共有 2 个文件被更改,包括 11 次插入3 次删除

查看文件

@ -73,9 +73,11 @@ function readConfigAndRun(args) {
if (!config.dns) {
config.dns = { modules: { name: 'proxy', port: 3053 } };
}
if (!config.mdns) {
config.mdns = { port: 5353, broadcast: '224.0.0.251', ttl: 300 };
}
// Use Object.assign to add any properties needed but not defined in the mdns config.
// It will first copy the defaults into an empty object, then copy any real config over that.
var mdnsDefaults = { port: 5353, broadcast: '224.0.0.251', ttl: 300 };
config.mdns = Object.assign({}, mdnsDefaults, config.mdns || {});
if (!config.tcp) {
config.tcp = {};
}

查看文件

@ -52,3 +52,9 @@ http:
domains:
- '*.localhost.daplie.me'
root: '/srv/www/:hostname'
mdns:
disabled: false
port: 5353
broadcast: '224.0.0.251'
ttl: 300