disable multicast by default :(

This commit is contained in:
Mark Nadal 2019-04-26 16:10:56 -07:00
parent 16634cf023
commit e9fc38ddd1

View File

@ -3,7 +3,8 @@ var Gun = (typeof window !== "undefined")? window.Gun : require('../gun');
Gun.on('create', function(root){
this.to.next(root);
var opt = root.opt;
if(false === opt.multicast){ return }
if(false === opt.multicast){ return }
if(true !== opt.multicast){ return } // disable multicast by default for now.
var udp = opt.multicast = opt.multicast || {};
udp.address = udp.address || '233.255.255.255';