mirror of
https://github.com/ragestudio/linebridge.git
synced 2025-06-09 10:34:17 +00:00
fix httpOptions
This commit is contained in:
parent
071358c3e5
commit
f3a4b2dace
@ -89,10 +89,8 @@ class Server {
|
|||||||
|
|
||||||
this.engineInstance = global.engineInstance = HTTPEngines[this.params.httpEngine]()
|
this.engineInstance = global.engineInstance = HTTPEngines[this.params.httpEngine]()
|
||||||
this.httpInstance = global.httpInstance = HTTPProtocolsInstances[this.params.protocol].createServer({
|
this.httpInstance = global.httpInstance = HTTPProtocolsInstances[this.params.protocol].createServer({
|
||||||
...this.engineInstance,
|
...this.params.httpOptions ?? {},
|
||||||
key: this.params.key,
|
}, this.engineInstance)
|
||||||
cert: this.params.cert,
|
|
||||||
})
|
|
||||||
this.wsInterface = global.wsInterface = {
|
this.wsInterface = global.wsInterface = {
|
||||||
io: new io.Server(this.httpInstance),
|
io: new io.Server(this.httpInstance),
|
||||||
map: {},
|
map: {},
|
||||||
|
Loading…
x
Reference in New Issue
Block a user