Skip to content

Commit

Permalink
Revert "Fix to check if $d is a ref"
Browse files Browse the repository at this point in the history
This reverts commit 50bf966.
  • Loading branch information
iliajie committed May 3, 2022
1 parent 50bf966 commit a002417
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion virtualmin-nginx-lib.pl
Original file line number Diff line number Diff line change
Expand Up @@ -1311,7 +1311,7 @@ sub find_domain_server
foreach my $s (@servers) {
my $obj = &find("server_name", $s);
foreach my $name (@{$obj->{'words'}}) {
if (defined($name) && ref($d) && (lc($name) eq lc($d->{'dom'}) ||
if (defined($name) && (lc($name) eq lc($d->{'dom'}) ||
lc($name) eq "www.".lc($d->{'dom'}) ||
lc($name) eq "*.".lc($d->{'dom'}))) {
return $s;
Expand Down

0 comments on commit a002417

Please sign in to comment.