mirror of
https://github.com/zadam/trilium.git
synced 2025-06-06 18:08:33 +02:00
electron: Ignore TRILIUM_HOST env (fixes #368)
This commit is contained in:
parent
27f513e2a3
commit
08060abe76
@ -1,3 +1,13 @@
|
||||
import config from "./config.js";
|
||||
import utils from "./utils.js";
|
||||
|
||||
export default process.env.TRILIUM_HOST || config['Network']['host'] || '0.0.0.0';
|
||||
function getHost() {
|
||||
const envHost = process.env.TRILIUM_HOST;
|
||||
if (envHost && !utils.isElectron) {
|
||||
return envHost;
|
||||
}
|
||||
|
||||
return config['Network']['host'] || '0.0.0.0';
|
||||
}
|
||||
|
||||
export default getHost();
|
Loading…
x
Reference in New Issue
Block a user