mirror of
https://github.com/lxsang/ant-http
synced 2024-11-17 17:08:20 +01:00
fix relay server
This commit is contained in:
parent
15feee5bf3
commit
fa750a74b2
1
relay.c
1
relay.c
@ -132,6 +132,7 @@ int main(int argc, char* argv[])
|
|||||||
if (client_name.sin_family == AF_INET)
|
if (client_name.sin_family == AF_INET)
|
||||||
client->ip = strdup(inet_ntoa(client_name.sin_addr));
|
client->ip = strdup(inet_ntoa(client_name.sin_addr));
|
||||||
client->sock = client_sock;
|
client->sock = client_sock;
|
||||||
|
time(&client->last_io);
|
||||||
//accept_request(&client);
|
//accept_request(&client);
|
||||||
antd_add_task(&scheduler, antd_create_task(antd_get_host,(void*)client, antd_free_client, client->last_io));
|
antd_add_task(&scheduler, antd_create_task(antd_get_host,(void*)client, antd_free_client, client->last_io));
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user