Commit aa535ccf authored by simon's avatar simon

chore: node version > 13.9.x

parent 0ccb1b26
...@@ -2,6 +2,9 @@ ...@@ -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",
......
...@@ -6,10 +6,6 @@ import { Authentication } from './auth'; ...@@ -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') { ...@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment