Skip to content

Commit

Permalink
client: dedupe addresses
Browse files Browse the repository at this point in the history
  • Loading branch information
koush committed Sep 28, 2023
1 parent 88e8530 commit 3648492
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/client/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -420,7 +420,7 @@ export async function connectScryptedClient(options: ScryptedClientOptions): Pro
// It is probably better to simply prompt and redirect to the LAN address
// if it is reacahble.

for (const address of addresses) {
for (const address of new Set(addresses)) {
console.log('trying', address);
const check = new eio.Socket(address, localEioOptions);
sockets.push(check);
Expand Down

0 comments on commit 3648492

Please sign in to comment.