api/cluster: version check for supportsReusePort()
Some checks are pending
CodeQL / Analyze (${{ matrix.language }}) (none, javascript-typescript) (push) Waiting to run
Run service tests / test service functionality (push) Waiting to run
Run service tests / test service: ${{ matrix.service }} (push) Blocked by required conditions
Run tests / check lockfile correctness (push) Waiting to run
Run tests / web sanity check (push) Waiting to run
Run tests / api sanity check (push) Waiting to run

This commit is contained in:
jj 2025-06-07 09:24:22 +00:00
parent 212b07394d
commit 19c036494f
No known key found for this signature in database

View File

@ -13,7 +13,8 @@ export const supportsReusePort = async () => {
server.on('error', (err) => (server.close(), reject(err)));
});
return true;
const [major, minor] = process.versions.node.split('.').map(Number);
return major > 23 || (major === 23 && minor >= 1);
} catch {
return false;
}