mirror of
https://github.com/MariaDB/server.git
synced 2026-05-08 08:04:29 +02:00
Allow hostnames that are IP addresses with a netmask even when
running with --skip-name-resolve. (Bug #8471) sql/sql_acl.cc: Add '/' to list of characters that doesn't trigger a need for resolving the hostname, so that the IP mask syntax works with skip-name-resolve.
This commit is contained in:
parent
1b46843c10
commit
ddcb947ff7
4 changed files with 14 additions and 1 deletions
|
|
@ -1339,7 +1339,7 @@ bool hostname_requires_resolving(const char *hostname)
|
|||
return FALSE;
|
||||
for (; (cur=*hostname); hostname++)
|
||||
{
|
||||
if ((cur != '%') && (cur != '_') && (cur != '.') &&
|
||||
if ((cur != '%') && (cur != '_') && (cur != '.') && (cur != '/') &&
|
||||
((cur < '0') || (cur > '9')))
|
||||
return TRUE;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue