chore: sync port references and docs to 4000s infra

This commit is contained in:
asepharyana
2026-08-02 16:19:30 +07:00
parent ad7747bfd4
commit 62021397e0
21 changed files with 123 additions and 70 deletions
+1 -1
View File
@@ -1,5 +1,5 @@
const stripPort = (host: string): string => {
// Handle IPv6: [::1]:8080 -> [::1]
// Handle IPv6: [::1]:4321 -> [::1]
if (host.startsWith('[')) {
const closeBracket = host.indexOf(']');
return host.slice(0, closeBracket + 1).toLowerCase();