fixing hostname error problem - fiche - A pastebin adjusted for gopher use | |
git clone git://vernunftzentrum.de/fiche.git | |
Log | |
Files | |
Refs | |
LICENSE | |
--- | |
commit 6ee6fa3100537bfbe10bef2c0e11b19b1a88ef84 | |
parent 8b553306f04ca25b51aad877e6f011eb077a1354 | |
Author: solusipse <[email protected]> | |
Date: Mon, 16 Sep 2013 22:49:39 +0200 | |
fixing hostname error problem | |
Diffstat: | |
fiche.c | 3 ++- | |
1 file changed, 2 insertions(+), 1 deletion(-) | |
--- | |
diff --git a/fiche.c b/fiche.c | |
@@ -156,7 +156,8 @@ struct client_data get_client_address(struct sockaddr_in cl… | |
hostp = gethostbyaddr((const char *)&client_address.sin_addr.s_addr, sizeo… | |
if (hostp == NULL) | |
{ | |
- nerror("ERROR: Couldn't obtain client's hostname"); | |
+ /*nerror("ERROR: Couldn't obtain client's hostname");*/ | |
+ printf("ERROR: Couldn't obtain client's hostname"); | |
data.hostname = "error"; | |
} | |
else |