no ip for local conns

SVN revision: 23822
This commit is contained in:
Carsten Haitzler 2006-07-10 19:11:55 +00:00
parent f41aec9158
commit 9b885559b6
1 changed files with 11 additions and 8 deletions

View File

@ -968,6 +968,8 @@ _ecore_con_svr_handler(void *data, Ecore_Fd_Handler *fd_handler __UNUSED__)
cl, NULL, NULL); cl, NULL, NULL);
ECORE_MAGIC_SET(cl, ECORE_MAGIC_CON_CLIENT); ECORE_MAGIC_SET(cl, ECORE_MAGIC_CON_CLIENT);
ecore_list_append(svr->clients, cl); ecore_list_append(svr->clients, cl);
if (!svr->path)
{
ip = incoming.sin_addr.s_addr; ip = incoming.sin_addr.s_addr;
snprintf(buf, sizeof(buf), snprintf(buf, sizeof(buf),
"%i.%i.%i.%i", "%i.%i.%i.%i",
@ -976,6 +978,7 @@ _ecore_con_svr_handler(void *data, Ecore_Fd_Handler *fd_handler __UNUSED__)
(ip >> 16) & 0xff, (ip >> 16) & 0xff,
(ip >> 24) & 0xff); (ip >> 24) & 0xff);
cl->ip = strdup(buf); cl->ip = strdup(buf);
}
if (!cl->delete_me) if (!cl->delete_me)
{ {
Ecore_Con_Event_Client_Add *e; Ecore_Con_Event_Client_Add *e;