Skip to content

Commit

Permalink
If all hosts are allowed, no need to include any others https://www.v…
Browse files Browse the repository at this point in the history
  • Loading branch information
jcameron committed Jun 4, 2017
1 parent a4b2796 commit 02a3082
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions feature-mysql.pl
Expand Up @@ -1628,6 +1628,10 @@ sub get_mysql_hosts
local $myip = &to_ipaddress(&get_system_hostname());
push(@hosts, $myip) if ($myip);
}
if (&indexof("%", @hosts) >= 0) {
# All hosts allowed - no need for other entries
@hosts = ( "%" );
}
}
return &unique(@hosts);
}
Expand Down

0 comments on commit 02a3082

Please sign in to comment.