diff --git a/index.js b/index.js index dd80e2d..0108b71 100644 --- a/index.js +++ b/index.js @@ -16,6 +16,7 @@ const app = { config: { srd: 'srd', plugins: {}, + port: 7331, }, live: { dictionary: {}, @@ -96,7 +97,7 @@ try { } /* ==== CMDLINE ============================================================= */ -const port = 7331 +const port = app.config.port process.argv.forEach((val, index, array) => { let parts = val.split('=') let key = ''