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:
parent
27641876c5
commit
a598983f9b
1 changed files with 1 additions and 1 deletions
2
client.c
2
client.c
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue