Commit acf4bc9979cfae8046bb60fb3be628f508632328

Authored by Frederik Lindenaar
1 parent 4e9ea3dd

Fixed issue with listing the domain without 'domain' parameter

Showing 1 changed file with 1 additions and 1 deletions
dyndns.pl
... ... @@ -417,7 +417,7 @@ foreach my $d (@DNSDomain) {
417 417 if ($d <0) { $d = join('.', splice(@{[ split(/\./, $cgi->virtual_host) ]}, $d)); }
418 418 else { $d = join('.', splice(@{[ split(/\./, $host) ]}, ($d) ? -$d : 1)); }
419 419 }
420   - $dnsdomain = $d if ($host && length($host) == length($d)+rindex($host,$d));
  420 + $dnsdomain = $d if (!$host || length($host) == length($d)+rindex($host,$d));
421 421 last if $dnsdomain;
422 422 }
423 423 fail($PE, "No host name to act on specified", 400)
... ...