Skip to content
Snippets Groups Projects
Commit 2519ad96 authored by Rodrigo Nascimento's avatar Rodrigo Nascimento
Browse files

Add logs of Force_SSL

parent 87e87331
No related branches found
No related tags found
No related merge requests found
......@@ -75,6 +75,13 @@ httpServer.addListener 'request', (req, res) ->
isSsl = req.connection.pair or (req.headers['x-forwarded-proto'] and req.headers['x-forwarded-proto'].indexOf('https') isnt -1)
if RocketChat?.debugLevel? and RocketChat.debugLevel is 'debug'
console.log 'req.url', req.url
console.log 'remoteAddress', remoteAddress
console.log 'isLocal', isLocal
console.log 'isSsl', isSsl
console.log 'req.headers', req.headers
if not isLocal and not isSsl
host = req.headers['host'] or url.parse(Meteor.absoluteUrl()).hostname
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment