client: fix sourcename command to accept ID addresses

Fix the command to print the name corresponding to an unresolved
address.
This commit is contained in:
Miroslav Lichvar 2021-02-10 12:16:18 +01:00
parent 27641876c5
commit a598983f9b

View file

@ -2086,7 +2086,7 @@ process_cmd_sourcename(char *line)
IPAddr ip_addr;
char name[256];
if (!UTI_StringToIP(line, &ip_addr)) {
if (!parse_source_address(line, &ip_addr)) {
LOG(LOGS_ERR, "Could not read address");
return 0;
}