Prosody recommended version is 0.12.x.

This commit is contained in:
John Livingston
2023-05-31 16:34:27 +02:00
parent 46cd201724
commit dbf43ae016
2 changed files with 9 additions and 4 deletions

View File

@ -146,10 +146,10 @@ export async function diagProsody (test: string, options: RegisterServerOptions)
const minor = versionMatches[2]
const patch = versionMatches[3] ?? versionMatches[4]
result.messages.push(`Prosody version is ${major}.${minor}.${patch}`)
if (major !== '0' && minor !== '11') {
if (major !== '0' && minor !== '12') {
result.messages.push({
level: parseInt(minor) < 11 ? 'error' : 'warning',
message: 'Warning: recommended Prosody version is 0.11.x'
level: parseInt(minor) < 12 ? 'error' : 'warning',
message: 'Warning: recommended Prosody version is 0.12.x'
})
}
}