Explorar el Código

Update index.js

Jairo hace 6 años
padre
commit
0d85c45f47
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      src/index.js

+ 1 - 1
src/index.js

@@ -63,7 +63,7 @@ function ExpressPeerServer (server, options) {
   };
 
   if (options.proxied) {
-    app.set('trust proxy', options.proxied);
+    app.set('trust proxy', options.proxied === 'false' ? false : options.proxied);
   }
 
   app.on('mount', () => {