mirror of
https://github.com/amark/gun.git
synced 2026-03-09 10:22:52 +00:00
if wifi off don't crash due to multicast membership
This commit is contained in:
@@ -22,7 +22,7 @@ Gun.on('create', function(root){
|
||||
socket.bind({port: udp.port, exclusive: true}, function(){
|
||||
socket.setBroadcast(true);
|
||||
socket.setMulticastTTL(128);
|
||||
socket.addMembership(udp.address);
|
||||
try{ socket.addMembership(udp.address); }catch(e){}
|
||||
});
|
||||
|
||||
socket.on("listening", function(){
|
||||
|
||||
Reference in New Issue
Block a user