Skip to content

Commit

Permalink
Fix name normalization
Browse files Browse the repository at this point in the history
  • Loading branch information
kelunik committed Jun 2, 2024
1 parent a6fa2bf commit 758266b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Rfc1035StubDnsResolver.php
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ public function resolve(string $name, ?int $typeRestriction = null, ?Cancellatio
foreach ($searchList as $searchIndex => $search) {
for ($redirects = 0; $redirects < 5; $redirects++) {
$searchName = match ($search) {
'.' => \rtrim($name, '.') . '.',
'.' => $name,
default => $name . '.' . $search,
};

Expand Down

0 comments on commit 758266b

Please sign in to comment.