ws: document bug in ws dnslookup command

This commit is contained in:
Benjamin Sergeant 2021-01-21 15:07:24 -08:00
parent ee5a2eb46e
commit 22c3a7264e

View File

@ -901,6 +901,9 @@ namespace ix
auto addr = res->ai_addr; auto addr = res->ai_addr;
// FIXME: this display weird addresses / we could steal libuv inet.c
// code which display correct results
char str[INET_ADDRSTRLEN]; char str[INET_ADDRSTRLEN];
inet_ntop(AF_INET, &addr, str, INET_ADDRSTRLEN); inet_ntop(AF_INET, &addr, str, INET_ADDRSTRLEN);