]> git.saurik.com Git - wxWidgets.git/commitdiff
Changed default address from INADDR_ANY to INADDR_NONE in GAddress_Init_INET,
authorGuillermo Rodriguez Garcia <guille@iies.es>
Thu, 18 Nov 1999 08:41:50 +0000 (08:41 +0000)
committerGuillermo Rodriguez Garcia <guille@iies.es>
Thu, 18 Nov 1999 08:41:50 +0000 (08:41 +0000)
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@4609 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/msw/gsocket.c

index 729886938afbcb8ff876bce54fa8590bee3705ed..0a0f072e7c259fe107b7e11a87519f0f2e1f4d59 100644 (file)
@@ -1175,7 +1175,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;
 }