Skip to content

Commit 765a8b3

Browse files
committed
Exclude port 5000
Macos control center may use port 5000 for airplay
1 parent ae005b4 commit 765a8b3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/core/port.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ const kMaxPort = 8000;
1717

1818
function isPortSafe(port: number): boolean {
1919
// excludes port numbers that chrome considers unsafe
20-
return ![3659, 4045, 6000, 6665, 6666, 6667, 6668, 6669, 6697].includes(
20+
return ![3659, 4045, 5000, 6000, 6665, 6666, 6667, 6668, 6669, 6697].includes(
2121
port,
2222
);
2323
}

0 commit comments

Comments
 (0)