mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-06-07 12:18:46 +00:00
Do not restrict the allowed update channels client-side
we really should have an endpoint on the server that deals with this.
This commit is contained in:
parent
f48cf68cac
commit
b081394125
@ -201,12 +201,7 @@ class AutoUpdater{
|
|||||||
* Returns the channel used for update checking (stable, beta, dev)
|
* Returns the channel used for update checking (stable, beta, dev)
|
||||||
*/
|
*/
|
||||||
public function getChannel() : string{
|
public function getChannel() : string{
|
||||||
$channel = strtolower($this->server->getProperty("auto-updater.preferred-channel", "stable"));
|
return strtolower($this->server->getProperty("auto-updater.preferred-channel", "stable"));
|
||||||
if($channel !== "stable" and $channel !== "beta" and $channel !== "alpha" and $channel !== "development"){
|
|
||||||
$channel = "stable";
|
|
||||||
}
|
|
||||||
|
|
||||||
return $channel;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
x
Reference in New Issue
Block a user