Skip to content

Commit

Permalink
Fix: support for docker 26+
Browse files Browse the repository at this point in the history
  • Loading branch information
xtrime-ru committed May 14, 2024
1 parent 04c88e6 commit 2a70849
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/UnixDnsConfigLoader.php
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,9 @@ public function loadConfig(): DnsConfig

$hosts = $this->hostLoader->loadHosts();

//remove search . from searchList, because it is already default behavior
$searchList = \array_filter($searchList, static fn (string $host) => $host !== '.');

if (\count($searchList) === 0) {
$hostname = \gethostname();
$dot = \strpos($hostname, ".");
Expand Down

0 comments on commit 2a70849

Please sign in to comment.