File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " strontium" ,
3
- "version" : " 2.4.10 " ,
3
+ "version" : " 2.4.11 " ,
4
4
"description" : " Strontium is a TypeScript toolkit for High Performance API servers built for Production not Projects." ,
5
5
"main" : " lib/src/index.js" ,
6
6
"types" : " lib/src/index.d.ts" ,
Original file line number Diff line number Diff line change @@ -16,7 +16,7 @@ export class FastifyServer implements Process {
16
16
private server : Fastify . FastifyInstance = Fastify ( )
17
17
private isAlive : boolean = false
18
18
19
- constructor ( public routes : RouterMap , private port : number = 8080 ) {
19
+ constructor ( public routes : RouterMap , private port : number = 8080 , private host : string = "127.0.0.1" ) {
20
20
for ( let route of routes ) {
21
21
switch ( route . method ) {
22
22
case "GET" :
@@ -105,7 +105,7 @@ export class FastifyServer implements Process {
105
105
this . server . use ( m )
106
106
}
107
107
108
- await this . server . listen ( this . port )
108
+ await this . server . listen ( this . port , this . host )
109
109
this . isAlive = true
110
110
111
111
let loggerInstance = container . get ( Logger )
You can’t perform that action at this time.
0 commit comments