fix(inferium-server): server crash at start

This commit is contained in:
Guillaume ARM 2024-05-21 23:35:25 +02:00
parent a4a33d1eef
commit cf39e16fa3

View File

@ -3,7 +3,7 @@ local inferiumPlans = require('config/inferium-plans') -- temporary default plan
local INFERIUM_SERVER = 'inferium.com'
local UPGRADE_SCRIPT = '/upgrade.lua'
local VERSION = "0.5.0"
local VERSION = "0.5.1"
local defaultPlan = inferiumPlans.default or error('no default plan provided in config', 0)
@ -49,7 +49,7 @@ local function handleMessage(message, computerId)
end
net.openRednet()
print('> inferium server v' .. VERSION .. ' listening on port ' .. INFERIUM_QUERY_PORT)
print('> inferium server v' .. VERSION .. ' started')
net.listenQuery(INFERIUM_SERVER, function(message, computerId, stopServer)
if type(message) ~= table then