fix incorrect User-Agent header in let's encrypt class, fixes #1683
Signed-off-by: Michael Kaufmann (d00p) <d00p@froxlor.org>
This commit is contained in:
@@ -188,7 +188,7 @@ class lescript
|
|||||||
$this->log("Token for $domain saved at $tokenPath and should be available at $uri");
|
$this->log("Token for $domain saved at $tokenPath and should be available at $uri");
|
||||||
|
|
||||||
// simple self check
|
// simple self check
|
||||||
$selfcheckContextOptions = array('http' => array('header' => "User Agent: Froxlor/".$this->version));
|
$selfcheckContextOptions = array('http' => array('header' => "User-Agent: Froxlor/".$this->version));
|
||||||
$selfcheckContext = stream_context_create($selfcheckContextOptions);
|
$selfcheckContext = stream_context_create($selfcheckContextOptions);
|
||||||
if ($payload !== trim(@file_get_contents($uri, false, $selfcheckContext))) {
|
if ($payload !== trim(@file_get_contents($uri, false, $selfcheckContext))) {
|
||||||
$errmsg = json_encode(error_get_last());
|
$errmsg = json_encode(error_get_last());
|
||||||
|
|||||||
Reference in New Issue
Block a user