We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 3864366 + abd0351 commit 38be0b4Copy full SHA for 38be0b4
src/api/integrations/event/websocket/websocket.controller.ts
@@ -33,7 +33,8 @@ export class WebsocketController extends EventController implements EventControl
33
const { remoteAddress } = req.socket;
34
const websocketConfig = configService.get<Websocket>('WEBSOCKET');
35
const allowedHosts = websocketConfig.ALLOWED_HOSTS || '127.0.0.1,::1,::ffff:127.0.0.1';
36
- const isAllowedHost = allowedHosts
+ const allowAllHosts = allowedHosts.trim() === '*';
37
+ const isAllowedHost = allowAllHosts || allowedHosts
38
.split(',')
39
.map((h) => h.trim())
40
.includes(remoteAddress);
0 commit comments