Skip to content

An open-source, self-hostable PaaS alternative to Vercel, Heroku & Netlify that lets you easily deploy static sites, databases, full-stack applications and 360+ one-click services on your own servers.

Add server connection validation in CheckProxy.php

Andras Bacsaia6cbabfba5c4
diff --git a/app/Actions/Proxy/CheckProxy.php b/app/Actions/Proxy/CheckProxy.php
index 32a4897a63..d39b33a2af 100644
--- a/app/Actions/Proxy/CheckProxy.php
+++ b/app/Actions/Proxy/CheckProxy.php
@@ -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.");