From a1d404435d25223d0fd9c471efab0ce395d86e8c Mon Sep 17 00:00:00 2001 From: Daniel Tartavel Date: Fri, 8 May 2020 13:12:40 +0200 Subject: [PATCH] debug --- main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.c b/main.c index 6fe48ac..caffc26 100644 --- a/main.c +++ b/main.c @@ -38,7 +38,7 @@ void getutmp( int pid, char user[], char host_ip[], char host_ipv6[], time_t * t if ( utmp->ut_pid == pid ) { sprintf(user, "%s", utmp->ut_user); //got user login - sprintf(host_ip, "%s", utmp->ut_host); //got ip of origin + //sprintf(host_ip, "%s", utmp->ut_host); //got ip of origin if((utmp->ut_addr_v6[1] && utmp->ut_addr_v6[2] && utmp->ut_addr_v6[3]) == 0) { ipv4 = utmp->ut_addr_v6[0] & 0x00000000000000ff;