mirror of
https://github.com/ragestudio/linebridge.git
synced 2025-06-09 10:34:17 +00:00
support custom httpServer listen
This commit is contained in:
parent
fc615982a2
commit
625c555cf8
@ -118,7 +118,7 @@ class Server {
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
if (typeof endpoint.controller.exec === "function") {
|
||||
routeModel.push(endpoint.controller.exec)
|
||||
}
|
||||
@ -247,7 +247,7 @@ class Server {
|
||||
|
||||
this.httpServer.use('/', this.router)
|
||||
|
||||
this.httpServer.listen(this.port, () => {
|
||||
this.httpServer.listen(this.port, this.params.listen ?? '0.0.0.0', () => {
|
||||
//? register to nethub
|
||||
if (this.params.onlineNethub) {
|
||||
nethub.registerOrigin({ entry: "/", oskid: this.oskid, id: this.id })
|
||||
|
Loading…
x
Reference in New Issue
Block a user