Skip to content

Commit 2f0910d

Browse files
committed
fix: ensure TCP ping success filtering uses strict comparison
1 parent f3073bf commit 2f0910d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/command/handlers/ping/tcp-ping.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -242,7 +242,7 @@ export function formatTcpPingResult (lines: Array<TcpPingData>): PingParseOutput
242242
};
243243
}
244244

245-
const timings = probeData.filter(t => t.success).map(probe => ({
245+
const timings = probeData.filter(t => t.success === true).map(probe => ({
246246
rtt: roundNumber(probe.rtt, 2),
247247
})).filter(t => !Number.isNaN(t.rtt));
248248

0 commit comments

Comments
 (0)