mirror of
https://github.com/Xahau/Validation-Ledger-Tx-Store-to-xPOP.git
synced 2025-12-06 17:27:57 +00:00
Fix default port
This commit is contained in:
@@ -62,7 +62,7 @@ let wss // WebSocket Server
|
|||||||
|
|
||||||
if (!wss) {
|
if (!wss) {
|
||||||
if (process.env?.EVENT_SOCKET_PORT && process.env?.URL_PREFIX) {
|
if (process.env?.EVENT_SOCKET_PORT && process.env?.URL_PREFIX) {
|
||||||
const port = Number(process.env.EVENT_SOCKET_PORT)
|
const port = Number(process.env.EVENT_SOCKET_PORT || 3000)
|
||||||
|
|
||||||
try {
|
try {
|
||||||
const app = express()
|
const app = express()
|
||||||
@@ -163,7 +163,7 @@ if (!wss) {
|
|||||||
})
|
})
|
||||||
})
|
})
|
||||||
|
|
||||||
const server = app.listen(port || 3000)
|
const server = app.listen(port)
|
||||||
|
|
||||||
// Play nice with Docker etc.
|
// Play nice with Docker etc.
|
||||||
const quit = () => {
|
const quit = () => {
|
||||||
|
|||||||
Reference in New Issue
Block a user