mirror of
https://github.com/EvolutionAPI/evolution-api.git
synced 2025-12-09 01:49:37 -06:00
Fix lint
This commit is contained in:
parent
0aa6c96765
commit
d67eb3202b
@ -33,7 +33,7 @@ export class WebsocketController extends EventController implements EventControl
|
|||||||
const { remoteAddress } = req.socket;
|
const { remoteAddress } = req.socket;
|
||||||
const isAllowedHost = (process.env.WEBSOCKET_ALLOWED_HOSTS || '127.0.0.1,::1,::ffff:127.0.0.1')
|
const isAllowedHost = (process.env.WEBSOCKET_ALLOWED_HOSTS || '127.0.0.1,::1,::ffff:127.0.0.1')
|
||||||
.split(',')
|
.split(',')
|
||||||
.map(h => h.trim())
|
.map((h) => h.trim())
|
||||||
.includes(remoteAddress);
|
.includes(remoteAddress);
|
||||||
|
|
||||||
if (params.has('EIO') && isAllowedHost) {
|
if (params.has('EIO') && isAllowedHost) {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user