From af0a90102b89ec7b29dacdb42c4b0429a4cbb3b7 Mon Sep 17 00:00:00 2001 From: Nikhil Narayana Date: Sun, 15 Sep 2024 21:06:30 -0700 Subject: [PATCH] fix: don't show Wiis that can't be connected to in the scanner --- src/console/connection_scanner.ts | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/console/connection_scanner.ts b/src/console/connection_scanner.ts index c1c488c3e..aa018d485 100644 --- a/src/console/connection_scanner.ts +++ b/src/console/connection_scanner.ts @@ -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];