Add port to config
parent
3406d9c43f
commit
366c1c0690
3
index.js
3
index.js
|
@ -16,6 +16,7 @@ const app = {
|
||||||
config: {
|
config: {
|
||||||
srd: 'srd',
|
srd: 'srd',
|
||||||
plugins: {},
|
plugins: {},
|
||||||
|
port: 7331,
|
||||||
},
|
},
|
||||||
live: {
|
live: {
|
||||||
dictionary: {},
|
dictionary: {},
|
||||||
|
@ -96,7 +97,7 @@ try {
|
||||||
}
|
}
|
||||||
|
|
||||||
/* ==== CMDLINE ============================================================= */
|
/* ==== CMDLINE ============================================================= */
|
||||||
const port = 7331
|
const port = app.config.port
|
||||||
process.argv.forEach((val, index, array) => {
|
process.argv.forEach((val, index, array) => {
|
||||||
let parts = val.split('=')
|
let parts = val.split('=')
|
||||||
let key = ''
|
let key = ''
|
||||||
|
|
Loading…
Reference in New Issue