mirror of
https://github.com/unraid/webgui.git
synced 2026-01-25 19:19:06 -06:00
Merge remote-tracking branch 'upstream/master'
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user