mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-28 21:33:15 -05:00
14 lines
415 B
Diff
14 lines
415 B
Diff
|
diff --git a/node_modules/forwarded/index.js b/node_modules/forwarded/index.js
|
||
|
index b2b6bdd..75e6254 100644
|
||
|
--- a/node_modules/forwarded/index.js
|
||
|
+++ b/node_modules/forwarded/index.js
|
||
|
@@ -46,7 +46,7 @@ function forwarded (req) {
|
||
|
function getSocketAddr (req) {
|
||
|
return req.socket
|
||
|
? req.socket.remoteAddress
|
||
|
- : req.connection.remoteAddress
|
||
|
+ : req.connection && req.connection.remoteAddress
|
||
|
}
|
||
|
|
||
|
/**
|