fix: build server should not have a proxy

This commit is contained in:
Andras Bacsai
2024-05-24 11:17:23 +02:00
parent 63e64b8bcc
commit 579ed5b9c0
2 changed files with 10 additions and 0 deletions

View File

@@ -13,6 +13,13 @@ class CheckProxy
if (!$server->isFunctional()) {
return false;
}
if ($server->isBuildServer()) {
if ($server->proxy) {
$server->proxy = null;
$server->save();
}
return false;
}
$proxyType = $server->proxyType();
if (is_null($proxyType) || $proxyType === 'NONE' || $server->proxy->force_stop) {
ray('Not starting proxy');