diff --git a/app/Models/InstanceSettings.php b/app/Models/InstanceSettings.php index 2740a4c43..32d04e9b5 100644 --- a/app/Models/InstanceSettings.php +++ b/app/Models/InstanceSettings.php @@ -37,6 +37,10 @@ class InstanceSettings extends Model implements SendsEmail return $envDefined; } $url = Url::fromString(Request::getSchemeAndHttpHost()); + $port = $url->getPort(); + if ($port) { + return 6001; + } if ($url->getScheme() === 'https') { return 443; } else {