Merge remote-tracking branch 'upstream/master'

This commit is contained in:
bergware
2022-05-08 11:04:54 +02:00
2 changed files with 29 additions and 21 deletions

View File

@@ -65,17 +65,12 @@ $keyfile = @file_get_contents($var['regFILE']);
if ($keyfile === false) {
response_complete(406, '{"error":"'._('License key required').'"}');
}
$keyfile = @base64_encode($keyfile);
$ethX = 'eth0';
$internalip = ipaddr($ethX);
$internalport = $var['PORTSSL'];
$keyfile = @base64_encode($keyfile);
$ch = curl_init("https://keys.lime-technology.com/account/ssl/$endpoint");
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_POST, 1);
curl_setopt($ch, CURLOPT_POSTFIELDS, [
'internalip' => $internalip,
'internalport' => $internalport,
'keyfile' => $keyfile
]);
$result = curl_exec($ch);