Fix: Fix TLS and improve X-Forwarded-For handling
Correct inverted TLS check and enhance X-Forwarded-For processing to include protocol. Additionally, remove unused closeHTTPClient function calls to prevent panics.
Signed-off-by: Christian Roessner c@roessner.co