Skip to content

Commit bf03baf

Browse files
committed
fix: Discovery will work even when port 1900 is already bound
fix #20
1 parent 8ea15bf commit bf03baf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/connection/discover.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ export function discoverDevices(
3434
onTimeout?: (addresses: string[]) => void
3535
): () => void {
3636
const socket = createSocket('udp4')
37-
socket.bind(1900)
37+
socket.bind()
3838

3939
socket.send(message, 1900, '239.255.255.250')
4040

0 commit comments

Comments
 (0)