]> git.rm.cloudns.org Git - xonotic/darkplaces.git/commitdiff
turn off the weird "%interface_name" thing in IPv6 addresses, as it won't compare...
authordivverent <divverent@d7cf8633-e32d-0410-b094-e92efae38249>
Sun, 3 Oct 2010 13:59:29 +0000 (13:59 +0000)
committerdivverent <divverent@d7cf8633-e32d-0410-b094-e92efae38249>
Sun, 3 Oct 2010 13:59:29 +0000 (13:59 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10512 d7cf8633-e32d-0410-b094-e92efae38249

netconn.c

index f6e5a6f3d8124b2b8c4673318f78f32e5cf2c79a..cd03c4c6845543aa27a33b2bea6f350d9e914ac1 100755 (executable)
--- a/netconn.c
+++ b/netconn.c
@@ -1528,6 +1528,7 @@ static void NetConn_ClientParsePacket_ServerList_ParseDPList(lhnetaddress_t *sen
 
                                /// \TODO: make some basic checks of the IP address (broadcast, ...)
 
+#ifdef WHY_JUST_WHY
                                ifname = LHNETADDRESS_GetInterfaceName(senderaddress);
                                if (ifname != NULL)
                                {
@@ -1537,6 +1538,7 @@ static void NetConn_ClientParsePacket_ServerList_ParseDPList(lhnetaddress_t *sen
                                                                ifname, port);
                                }
                                else
+#endif
                                {
                                        dpsnprintf (ipstring, sizeof (ipstring), "[%x:%x:%x:%x:%x:%x:%x:%x]:%hu",
                                                                (data[1] << 8) | data[2], (data[3] << 8) | data[4], (data[5] << 8) | data[6], (data[7] << 8) | data[8],