mirror of
https://gitlab.com/chrony/chrony.git
synced 2025-12-03 23:55:07 -05:00
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:
2
client.c
2
client.c
@@ -2086,7 +2086,7 @@ process_cmd_sourcename(char *line)
|
|||||||
IPAddr ip_addr;
|
IPAddr ip_addr;
|
||||||
char name[256];
|
char name[256];
|
||||||
|
|
||||||
if (!UTI_StringToIP(line, &ip_addr)) {
|
if (!parse_source_address(line, &ip_addr)) {
|
||||||
LOG(LOGS_ERR, "Could not read address");
|
LOG(LOGS_ERR, "Could not read address");
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user