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.

fix: Bind to assignment IP for DHCP discovery (#1)

* Add default IP to DHCP bind

* Add changeset

authored by

Phil Pluckthun and committed by
GitHub
0d326ccf 9cfe5656

+6 -1
+5
.changeset/breezy-boxes-ring.md
··· 1 + --- 2 + 'lan-network': patch 3 + --- 4 + 5 + Bind to assignment IP for DHCP discovery
+1 -1
src/dhcp.ts
··· 69 69 socket.close(); 70 70 socket.unref(); 71 71 }); 72 - socket.bind(DHCP_CLIENT_PORT, () => { 72 + socket.bind(DHCP_CLIENT_PORT, assignment.address, () => { 73 73 socket.setBroadcast(true); 74 74 socket.setSendBufferSize(packet.length); 75 75 socket.send(