Skip to content

Commit 8909569

Browse files
committed
fix
Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
1 parent 7211d56 commit 8909569

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

lib/Service/GlobalScaleService.php

+5-1
Original file line numberDiff line numberDiff line change
@@ -267,7 +267,11 @@ private function getLocalInstance(bool $all): array {
267267
$absolute = $this->urlGenerator->linkToRouteAbsolute('circles.Navigation.navigate');
268268
$local = parse_url($absolute);
269269

270-
return [$local['host'] . ':' . $local['port']];
270+
if (array_key_exists('port', $local)) {
271+
return [$local['host'] . ':' . $local['port']];
272+
} else {
273+
return [$local['host']];
274+
}
271275
}
272276

273277

0 commit comments

Comments
 (0)