Fix crash caused by wildcards in NamedServeFilter source parameter
Use the formated IP address instead of the one with wildcard symbols.
This commit is contained in:
@ -805,7 +805,7 @@ SourceHost* RegexHintFilter::set_source_address(const char* input_host)
|
||||
|
||||
struct addrinfo *ai = NULL, hint = {};
|
||||
hint.ai_flags = AI_ADDRCONFIG | AI_V4MAPPED;
|
||||
int rc = getaddrinfo(input_host, NULL, &hint, &ai);
|
||||
int rc = getaddrinfo(format_host, NULL, &hint, &ai);
|
||||
|
||||
/* fill IPv4 data struct */
|
||||
if (rc == 0)
|
||||
|
||||
Reference in New Issue
Block a user