chore: node version > 13.9.x

This commit is contained in:
simon 2020-02-25 14:36:02 +01:00
parent 0ccb1b26cc
commit aa535ccf32
2 changed files with 7 additions and 4 deletions

View File

@ -2,6 +2,9 @@
"name": "radius-server", "name": "radius-server",
"description": "radius server for google LDAP and TTLS", "description": "radius server for google LDAP and TTLS",
"version": "0.0.1", "version": "0.0.1",
"engines": {
"node": ">13.9.x"
},
"scripts": { "scripts": {
"debug": "DEBUG=radius:* node dist/app.js", "debug": "DEBUG=radius:* node dist/app.js",
"start": "node dist/app.js", "start": "node dist/app.js",

View File

@ -6,10 +6,6 @@ import { Authentication } from './auth';
import { IAuthentication } from './types/Authentication'; import { IAuthentication } from './types/Authentication';
import { startTLSServer } from './tls/crypt'; import { startTLSServer } from './tls/crypt';
console.log(`Listener Port: ${config.port || 1812}`);
console.log(`RADIUS Secret: ${config.secret}`);
console.log(`Auth Mode: ${config.authentication}`);
/* test node version */ /* test node version */
const testSocket = startTLSServer(); const testSocket = startTLSServer();
if (typeof (testSocket.tls as any).exportKeyingMaterial !== 'function') { if (typeof (testSocket.tls as any).exportKeyingMaterial !== 'function') {
@ -18,6 +14,10 @@ if (typeof (testSocket.tls as any).exportKeyingMaterial !== 'function') {
process.exit(-1); process.exit(-1);
} }
console.log(`Listener Port: ${config.port || 1812}`);
console.log(`RADIUS Secret: ${config.secret}`);
console.log(`Auth Mode: ${config.authentication}`);
(async () => { (async () => {
/* configure auth mechansim */ /* configure auth mechansim */
let auth: IAuthentication; let auth: IAuthentication;