gethostbyaddr() fails on the hostname of GitHub CI containers --- a/tests/LTsock.c +++ b/tests/LTsock.c @@ -262,6 +262,3 @@ - if (gethostname(hnm, sizeof(hnm) - 1)) { - cem = "ERROR!!! can't get this host's name"; - goto print_errno; - } + strncpy(hnm, "localhost", sizeof(hnm) - 1); hnm[sizeof(hnm) - 1] = '\0'; if (!(hp = gethostbyname(hnm))) {