Commit 646bfbd9 authored by Dominik Hebeler's avatar Dominik Hebeler

Merge branch '935-test-proxy-forwarding' into 'development'

Resolve "Test Proxy Forwarding"

Closes #935

See merge request !1512
parents 602c4df2 f921c971
......@@ -9,6 +9,9 @@
# Manchmal passiert es, dass ein Proxy sowohl den HEADER HTTP_FORWARDED, als auch den HEADER "HTTP_X_FORWARDED_FOR" setzt
# Wir löschen den einen und verwenden Ihn nicht:
if (!empty($_SERVER["HTTP_X_ORIGINAL_FORWARDED_FOR"])) {
$_SERVER["HTTP_X_FORWARDED_FOR"] = $_SERVER["HTTP_X_ORIGINAL_FORWARDED_FOR"];
}
if (isset($_SERVER["HTTP_FORWARDED"]) && isset($_SERVER["HTTP_X_FORWARDED_FOR"])) {
unset($_SERVER["HTTP_FORWARDED"]);
}
......
......@@ -175,6 +175,9 @@ Route::group(
Route::get('engine/stats.json', 'AdminInterface@engineStats');
Route::get('check', 'AdminInterface@check');
Route::get('engines', 'AdminInterface@engines');
Route::get('ip', function () {
dd(Request::ip(), $_SERVER["AGENT"]);
});
});
Route::get('settings', function () {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment