Mirror: Best-effort discovery of the machine's local network using just Node.js dgram sockets
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

Patch logs

+1 -2
+1 -1
package.json
··· 1 1 { 2 2 "name": "lan-network", 3 - "version": "0.1.3", 3 + "version": "0.1.4", 4 4 "description": "Best-effort discovery of the machine's default gateway and local network IP exclusively with UDP sockets.", 5 5 "author": "Phil Pluckthun <phil@kitten.sh>", 6 6 "source": "./src/index.ts",
-1
src/cli.ts
··· 42 42 return dhcpDiscover(assignment); 43 43 }) 44 44 ); 45 - console.log(discoveries); 46 45 let assignment: GatewayAssignment | null = null; 47 46 for (const discovery of discoveries) { 48 47 // The first discovered gateway is returned, if it matches an assignment