fix: restore static workstation IP for local connection snippets and service urls
This commit is contained in:
@@ -7,9 +7,5 @@ export function cn(...inputs: ClassValue[]) {
|
||||
|
||||
export function resolveExternalUrl(url?: string): string {
|
||||
if (!url) return ""
|
||||
const currentHostname = window.location.hostname
|
||||
if (currentHostname !== "127.0.0.1" && currentHostname !== "localhost" && currentHostname !== "") {
|
||||
return url.replace(/127\.0\.0\.1|localhost/g, currentHostname)
|
||||
}
|
||||
return url
|
||||
return url.replace(/127\.0\.0\.1|localhost/g, "192.168.178.151")
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user