Skip to content

Commit

Permalink
fix: don't show Wiis that can't be connected to in the scanner
Browse files Browse the repository at this point in the history
  • Loading branch information
NikhilNarayana committed Sep 16, 2024
1 parent ff54267 commit af0a901
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/console/connection_scanner.ts
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,12 @@ export class ConnectionScanner {
// The Wii's IP address
const ip = rinfo.address;

if (ip === "0.0.0.0") {
// this is not a routable address, any wii advertising failed to get an actual IP
// TODO: give a warning toast that a Wii with no assigned IP was found
return;
}

const previous = this.availableConnectionsByIp[ip];
const previousTimeoutHandler = this.timeoutsByIp[ip];

Expand Down

0 comments on commit af0a901

Please sign in to comment.