Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
N
Node Radius Server
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Packages
Packages
List
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issues
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nanahira
Node Radius Server
Commits
0ccb1b26
Commit
0ccb1b26
authored
Feb 25, 2020
by
simon
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
chore: improve check for supported node js version
parent
0baf8155
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
2 deletions
+11
-2
package.json
package.json
+2
-2
src/app.ts
src/app.ts
+9
-0
No files found.
package.json
View file @
0ccb1b26
...
@@ -3,8 +3,8 @@
...
@@ -3,8 +3,8 @@
"description"
:
"radius server for google LDAP and TTLS"
,
"description"
:
"radius server for google LDAP and TTLS"
,
"version"
:
"0.0.1"
,
"version"
:
"0.0.1"
,
"scripts"
:
{
"scripts"
:
{
"debug"
:
"DEBUG=radius:*
../node/
node dist/app.js"
,
"debug"
:
"DEBUG=radius:* node dist/app.js"
,
"start"
:
"
../node/
node dist/app.js"
,
"start"
:
"node dist/app.js"
,
"build"
:
"tsc"
,
"build"
:
"tsc"
,
"dev"
:
"ts-node src/app.ts"
,
"dev"
:
"ts-node src/app.ts"
,
"test"
:
"mocha -r ts-node/register __tests__/**/*.test.ts"
,
"test"
:
"mocha -r ts-node/register __tests__/**/*.test.ts"
,
...
...
src/app.ts
View file @
0ccb1b26
...
@@ -4,11 +4,20 @@ import { RadiusService } from './radius/RadiusService';
...
@@ -4,11 +4,20 @@ import { RadiusService } from './radius/RadiusService';
import
*
as
config
from
'
../config
'
;
import
*
as
config
from
'
../config
'
;
import
{
Authentication
}
from
'
./auth
'
;
import
{
Authentication
}
from
'
./auth
'
;
import
{
IAuthentication
}
from
'
./types/Authentication
'
;
import
{
IAuthentication
}
from
'
./types/Authentication
'
;
import
{
startTLSServer
}
from
'
./tls/crypt
'
;
console
.
log
(
`Listener Port:
${
config
.
port
||
1812
}
`
);
console
.
log
(
`Listener Port:
${
config
.
port
||
1812
}
`
);
console
.
log
(
`RADIUS Secret:
${
config
.
secret
}
`
);
console
.
log
(
`RADIUS Secret:
${
config
.
secret
}
`
);
console
.
log
(
`Auth Mode:
${
config
.
authentication
}
`
);
console
.
log
(
`Auth Mode:
${
config
.
authentication
}
`
);
/* test node version */
const
testSocket
=
startTLSServer
();
if
(
typeof
(
testSocket
.
tls
as
any
).
exportKeyingMaterial
!==
'
function
'
)
{
console
.
error
(
'
UNSUPPORTED NODE VERSION FOUND!!
'
)
console
.
log
(
'
run "sudo npx n nightly" to get nightly build of node js.
'
);
process
.
exit
(
-
1
);
}
(
async
()
=>
{
(
async
()
=>
{
/* configure auth mechansim */
/* configure auth mechansim */
let
auth
:
IAuthentication
;
let
auth
:
IAuthentication
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment