diff --git a/public/auth.php b/public/auth.php index 663f4fd..91c9fc1 100644 --- a/public/auth.php +++ b/public/auth.php @@ -15,6 +15,7 @@ if (isset($_GET['code']) && isset($_GET['state'])) { // Autorisierungscode gegen Token tauschen $ch = curl_init($authelia_url . '/api/oidc/token'); + curl_setopt($ch, CURLOPT_RESOLVE, ["auth.iten.pro:443:84.227.207.55"]); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); curl_setopt($ch, CURLOPT_POST, true); curl_setopt($ch, CURLOPT_POSTFIELDS, http_build_query([ @@ -32,7 +33,7 @@ if (isset($_GET['code']) && isset($_GET['state'])) { curl_close($ch); die('Kritischer cURL-Netzwerkfehler: ' . $error_msg); } - + curl_close($ch); $data = json_decode($response, true);