mirror of
https://github.com/MichMich/MagicMirror.git
synced 2026-07-07 14:49:01 -07:00
fix(electron): map IPv6 :: wildcard to localhost (#4188)
This commit is contained in:
+1
-1
@@ -100,7 +100,7 @@ function createWindow () {
|
||||
prefix = "http://";
|
||||
}
|
||||
|
||||
let address = (config.address === void 0) | (config.address === "") | (config.address === "0.0.0.0") ? (config.address = "localhost") : config.address;
|
||||
let address = (config.address === void 0) | (config.address === "") | (config.address === "0.0.0.0") | (config.address === "::") ? (config.address = "localhost") : config.address;
|
||||
const port = process.env.MM_PORT || config.port;
|
||||
mainWindow.loadURL(`${prefix}${address}:${port}`);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user