浏览代码

Update index.js

Jairo 5 年之前
父节点
当前提交
0d85c45f47
共有 1 个文件被更改,包括 1 次插入1 次删除
  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', () => {