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:
Dylan K. Taylor
2021-12-08 21:57:16 +00:00
parent f48cf68cac
commit b081394125

View File

@ -201,12 +201,7 @@ class AutoUpdater{
* Returns the channel used for update checking (stable, beta, dev)
*/
public function getChannel() : string{
$channel = 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;
return strtolower($this->server->getProperty("auto-updater.preferred-channel", "stable"));
}
/**