|
|
@ -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;
|
|
|
|