Commit c086a04e by Michael Pastushkov

fix

parent b006c025
...@@ -262,6 +262,8 @@ int wait_connection(void) { ...@@ -262,6 +262,8 @@ int wait_connection(void) {
perror("wait_connection: accept()"); perror("wait_connection: accept()");
return 1; return 1;
} }
if (options.log)
printf("%s request from %s\n", get_current_timestamp(), inet_ntoa(rc.client_addr.sin_addr));
} }
if (options.client_address && (strcmp(inet_ntoa(rc.client_addr.sin_addr), options.client_address) != 0)) { if (options.client_address && (strcmp(inet_ntoa(rc.client_addr.sin_addr), options.client_address) != 0)) {
...@@ -271,9 +273,6 @@ int wait_connection(void) { ...@@ -271,9 +273,6 @@ int wait_connection(void) {
return 1; return 1;
} }
if (options.log)
printf("%s request from %s\n", get_current_timestamp(), inet_ntoa(rc.client_addr.sin_addr));
return 0; return 0;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment