mirror of
https://github.com/amark/gun.git
synced 2025-06-07 06:36:46 +00:00
don't crash if multicast offline
This commit is contained in:
parent
0515403716
commit
aa558f0706
@ -22,7 +22,7 @@ Gun.on('create', function(root){
|
|||||||
socket.bind(udp.port);
|
socket.bind(udp.port);
|
||||||
|
|
||||||
socket.on("listening", function(){
|
socket.on("listening", function(){
|
||||||
socket.addMembership(udp.address);
|
try { socket.addMembership(udp.address) }catch(e){ return }
|
||||||
udp.peer = {id: udp.address + ':' + udp.port, wire: socket};
|
udp.peer = {id: udp.address + ':' + udp.port, wire: socket};
|
||||||
|
|
||||||
udp.peer.say = function(raw){
|
udp.peer.say = function(raw){
|
||||||
|
Loading…
x
Reference in New Issue
Block a user