From: Guillermo Rodriguez Garcia Date: Thu, 18 Nov 1999 08:39:51 +0000 (+0000) Subject: Changed default address from INADDR_ANY to INADDR_NONE in GAddress_INET_Init, X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/2d8353236d071702fe61f3a568324a9c4962d338 Changed default address from INADDR_ANY to INADDR_NONE in GAddress_INET_Init, so that if the address is not correctly initialized it won't connect to localhost by default. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@4608 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/unix/gsocket.c b/src/unix/gsocket.c index 12f7eb5845..e4f8fdd783 100644 --- a/src/unix/gsocket.c +++ b/src/unix/gsocket.c @@ -1089,7 +1089,7 @@ GSocketError _GAddress_Init_INET(GAddress *address) address->m_family = GSOCK_INET; address->m_realfamily = PF_INET; ((struct sockaddr_in *)address->m_addr)->sin_family = AF_INET; - ((struct sockaddr_in *)address->m_addr)->sin_addr.s_addr = INADDR_ANY; + ((struct sockaddr_in *)address->m_addr)->sin_addr.s_addr = INADDR_NONE; return GSOCK_NOERROR; }