mirror of
https://github.com/appwrite/appwrite.git
synced 2026-05-26 13:51:13 +00:00
Drop unreachable empty-endpoint branch from host check
This commit is contained in:
@@ -236,10 +236,7 @@ class Migrations extends Action
|
||||
}
|
||||
}
|
||||
|
||||
// Empty-string endpoint slips through processMigration's `??` defaulting (which only
|
||||
// catches null/absent); treat it as targeting the internal migration host.
|
||||
$isLocalEndpoint = (is_string($sourceHost) && !empty($allowedHosts) && (new Hostname($allowedHosts))->isValid($sourceHost))
|
||||
|| (empty($credentials['endpoint']) && $migrationHost !== '');
|
||||
$isLocalEndpoint = is_string($sourceHost) && !empty($allowedHosts) && (new Hostname($allowedHosts))->isValid($sourceHost);
|
||||
|
||||
$sourceRegion = $this->sourceProject->getAttribute('region', 'default');
|
||||
$destinationRegion = $this->project->getAttribute('region', 'default');
|
||||
|
||||
Reference in New Issue
Block a user