Skip to content

A local-first personal finance app

add: hostname binding support

UnexomWid6de775a1bf18
diff --git a/app.js b/app.js
index 1b43754844..46cc5992f3 100644
--- a/app.js
+++ b/app.js
@@ -43,8 +43,8 @@ async function run() {
await accountApp.init();
await syncApp.init();
- console.log('Listening on ' + config.port + '...');
- app.listen(config.port);
+ console.log('Listening on ' + config.hostname + ':' + config.port + '...');
+ app.listen(config.port, config.hostname);
}
run().catch(err => {
diff --git a/load-config.js b/load-config.js
index 11ef2b64f3..6f707be0ab 100644
--- a/load-config.js
+++ b/load-config.js
@@ -9,6 +9,7 @@ try {
config = {
mode: 'development',
port: 5006,
+ hostname: 'localhost',
serverFiles: join(root, 'server-files'),
userFiles: join(root, 'user-files')
};