Skip to content

Commit 27acd1e

Browse files
fix: don't accept records if gameversion header is not present
1 parent 1d631d1 commit 27acd1e

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

eddn_listener/schemas/journalv5.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ function Journal() {
4747

4848
this.trackSystem = async (message, header) => {
4949
let mongoSession = await mongoose.startSession()
50-
if (parseFloat(header.gameversion) < 4) {
50+
if (!header.gameversion || parseFloat(header.gameversion) < 4) {
5151
throw new Error('Message from Legacy Game Version ' + header.gameversion)
5252
}
5353
if (message.event === 'FSDJump' || message.event === 'Location' || message.event === 'CarrierJump') {

package-lock.json

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "elitebgs",
3-
"version": "8.0.4",
3+
"version": "8.1.0",
44
"license": "Apache-2.0",
55
"scripts": {
66
"start:dev": "run-p start:dev:backend start:dev:eddn_listener start:dev:frontend start:dev:guild_bot start:dev:tick_listener",

0 commit comments

Comments
 (0)