mirror of
				https://github.com/Ylianst/MeshCentral.git
				synced 2025-03-09 15:40:18 +00:00 
			
		
		
		
	Fixed WoL issue where MulticastTTL and MulticastInterface needed to be set
This commit is contained in:
		
							parent
							
								
									4393ae6fb1
								
							
						
					
					
						commit
						7d698fbb18
					
				
					 1 changed files with 2 additions and 0 deletions
				
			
		| 
						 | 
				
			
			@ -660,6 +660,8 @@ function createMeshCore(agent) {
 | 
			
		|||
                                var socket = require('dgram').createSocket({ type: 'udp4' });
 | 
			
		||||
                                socket.bind({ address: addr.address });
 | 
			
		||||
                                socket.setBroadcast(true);
 | 
			
		||||
                                socket.setMulticastInterface(addr.address);
 | 
			
		||||
                                socket.setMulticastTTL(1);
 | 
			
		||||
                                socket.send(magicbin, 7, '255.255.255.255');
 | 
			
		||||
                                socket.descriptorMetadata = 'WoL (' + addr.address + ' => ' + hexMac + ')';
 | 
			
		||||
                                count++;
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue