Merge pull request #1953 from Dokploy/1898-remote-server-with-ipv6

fix: update slugIp formatting to handle colons in server IP
This commit is contained in:
Mauricio Siu
2025-05-26 00:55:43 -06:00
committed by GitHub

View File

@@ -35,7 +35,7 @@ export const generateRandomDomain = ({
projectName,
}: Schema): string => {
const hash = randomBytes(3).toString("hex");
const slugIp = serverIp.replaceAll(".", "-");
const slugIp = serverIp.replaceAll(".", "-").replaceAll(":", "-");
return `${projectName}-${hash}${slugIp === "" ? "" : `-${slugIp}`}.traefik.me`;
};