mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-21 20:47:08 -05:00
Be more verbose with ip debug output
This commit is contained in:
parent
5aa7daa951
commit
341570d85d
1 changed files with 5 additions and 1 deletions
|
@ -199,7 +199,11 @@ module.exports = class Router
|
|||
languages: []
|
||||
|
||||
app.get "/ip", (req, res, next) ->
|
||||
res.send("ShareLaTeX sees your IP as: #{req.ip}")
|
||||
res.send({
|
||||
ip: req.ip
|
||||
ips: req.ips
|
||||
headers: req.headers
|
||||
})
|
||||
|
||||
app.get '/oops-express', (req, res, next) -> next(new Error("Test error"))
|
||||
app.get '/oops-internal', (req, res, next) -> throw new Error("Test error")
|
||||
|
|
Loading…
Reference in a new issue