mirror of
https://github.com/Start9Labs/start-os.git
synced 2026-04-04 14:29:45 +00:00
brackets for ipv6
This commit is contained in:
@@ -90,6 +90,8 @@ export const addressHostToUrl = (
|
|||||||
} else if (host.kind === "ip") {
|
} else if (host.kind === "ip") {
|
||||||
if (host.hostname.kind === "domain") {
|
if (host.hostname.kind === "domain") {
|
||||||
hostname = `${host.hostname.subdomain ? `${host.hostname.subdomain}.` : ""}${host.hostname.domain}`
|
hostname = `${host.hostname.subdomain ? `${host.hostname.subdomain}.` : ""}${host.hostname.domain}`
|
||||||
|
} else if (host.hostname.kind === "ipv6") {
|
||||||
|
hostname = `[${host.hostname.value}]`
|
||||||
} else {
|
} else {
|
||||||
hostname = host.hostname.value
|
hostname = host.hostname.value
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user