Skip to content

Commit

Permalink
fix(CS): Fix coding style
Browse files Browse the repository at this point in the history
Signed-off-by: Joas Schilling <coding@schilljs.com>
  • Loading branch information
nickvergessen committed Feb 14, 2024
1 parent c468408 commit 696ed4a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/private/AppFramework/Http/Request.php
Original file line number Diff line number Diff line change
Expand Up @@ -611,7 +611,7 @@ public function getRemoteAddress(): string {
if ($colons > 1) {
// Extract IP from string with brackets and optional port
if (preg_match('/^\[(.+?)\](?::\d+)?$/', $IP, $matches) && isset($matches[1])) {
$IP = $matches[1];
$IP = $matches[1];
}
} elseif ($colons === 1) {
// IPv4 with port
Expand Down

0 comments on commit 696ed4a

Please sign in to comment.