From aa535ccf3286cb7f8432bfb981f165f41e65e436 Mon Sep 17 00:00:00 2001 From: simon Date: Tue, 25 Feb 2020 14:36:02 +0100 Subject: [PATCH] chore: node version > 13.9.x --- package.json | 3 +++ src/app.ts | 8 ++++---- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/package.json b/package.json index 7533f32..afeda0c 100644 --- a/package.json +++ b/package.json @@ -2,6 +2,9 @@ "name": "radius-server", "description": "radius server for google LDAP and TTLS", "version": "0.0.1", + "engines": { + "node": ">13.9.x" + }, "scripts": { "debug": "DEBUG=radius:* node dist/app.js", "start": "node dist/app.js", diff --git a/src/app.ts b/src/app.ts index e43888d..35a98eb 100644 --- a/src/app.ts +++ b/src/app.ts @@ -6,10 +6,6 @@ import { Authentication } from './auth'; import { IAuthentication } from './types/Authentication'; 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 */ const testSocket = startTLSServer(); if (typeof (testSocket.tls as any).exportKeyingMaterial !== 'function') { @@ -18,6 +14,10 @@ if (typeof (testSocket.tls as any).exportKeyingMaterial !== 'function') { process.exit(-1); } +console.log(`Listener Port: ${config.port || 1812}`); +console.log(`RADIUS Secret: ${config.secret}`); +console.log(`Auth Mode: ${config.authentication}`); + (async () => { /* configure auth mechansim */ let auth: IAuthentication;