update turn config to prevent internal access

https://www.rtcsec.com/2020/04/01-slack-webrtc-turn-compromise/
This commit is contained in:
Girish Ramakrishnan
2020-04-07 15:37:31 -07:00
parent f98e3b1960
commit 6adf5772d8
2 changed files with 2 additions and 1 deletions

View File

@@ -301,6 +301,7 @@ function initializeExpressSync() {
// upgrade handler
httpServer.on('upgrade', function (req, socket, head) {
console.log('THIS IS IN AN UPGADE');
// create a node response object for express
var res = new http.ServerResponse({});
res.assignSocket(socket);