diff --git a/main.cpp b/main.cpp index 54e6e5e..5a67b2e 100755 --- a/main.cpp +++ b/main.cpp @@ -1787,9 +1787,9 @@ int main(int argc, char *argv[]) #else { //strncpy(remote_ip,remote_address,sizeof(remote_ip)-1); - mylog(log_info,"remote_ip=[%s], make sure this is a vaild IP address\n",remote_ip); strcpy(remote_ip,remote_address); remote_ip_uint32=inet_addr(remote_ip); + mylog(log_info,"remote_ip=[%s], make sure this is a vaild IP address\n",remote_ip); } #endif