Refactor StartSentinel.php to use data_get() for retrieving server settings

This commit is contained in:
Andras Bacsai
2024-10-15 15:45:02 +02:00
parent 46ec8eed64
commit 8c53af088e
2 changed files with 10 additions and 15 deletions

View File

@@ -529,17 +529,17 @@ $schema://$host {
public function generateSentinelUrl() {
if ($this->isLocalhost()) {
return 'http://host.docker.internal:8888';
return 'http://host.docker.internal:8000';
}
$settings = InstanceSettings::get();
if ($settings->fqdn) {
return $settings->fqdn;
}
if ($settings->ipv4) {
return $settings->ipv4 . ':8888';
return $settings->ipv4 . ':8000';
}
if ($settings->ipv6) {
return $settings->ipv6 . ':8888';
return $settings->ipv6 . ':8000';
}
return null;
}