mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-06 01:46:04 +00:00
Improved git hash handling, add dirty git detection and disable automatic reporting for dirty builds
This commit is contained in:
@ -2159,6 +2159,11 @@ class Server{
|
||||
$report = false;
|
||||
}
|
||||
|
||||
if(strrpos(\pocketmine\GIT_COMMIT, "-dirty") !== false){
|
||||
$this->logger->debug("Not sending crashdump due to locally modified");
|
||||
$report = false; //Don't send crashdumps for locally modified builds
|
||||
}
|
||||
|
||||
if($report){
|
||||
$url = ($this->getProperty("auto-report.use-https", true) ? "https" : "http") . "://" . $this->getProperty("auto-report.host", "crash.pmmp.io") . "/submit/api";
|
||||
$reply = Utils::postURL($url, [
|
||||
|
Reference in New Issue
Block a user