Add server connection validation in CheckProxy.php

This commit is contained in:
Andras Bacsai committed 2024-04-09 08:45:37 +02:00
1 parent 1ef85242ec
commit a6cbabfba5
1 file changed
+3
+3
View File
@@ -13,6 +13,9 @@ class CheckProxy
if ($server->proxyType() === 'NONE') {
return false;
}
if (!$server->validateConnection()) {
throw new \Exception("Server Connection Error");
}
if (!$server->isProxyShouldRun()) {
if ($fromUI) {
throw new \Exception("Proxy should not run. You selected the Custom Proxy.");