diff --git a/src/infrastructure/env/PhabricatorEnv.php b/src/infrastructure/env/PhabricatorEnv.php index b53f1c4f05..0ccf9d3a76 100644 --- a/src/infrastructure/env/PhabricatorEnv.php +++ b/src/infrastructure/env/PhabricatorEnv.php @@ -782,6 +782,11 @@ final class PhabricatorEnv extends Phobject { } public static function isClusterRemoteAddress() { + $cluster_addresses = self::getEnvConfig('cluster.addresses'); + if (!$cluster_addresses) { + return false; + } + $address = idx($_SERVER, 'REMOTE_ADDR'); if (!$address) { throw new Exception(