diff libpurple/protocols/jabber/jutil.c @ 27540:da3d0159333d

XMPP domains can also be IPv4 or IPv6 addresses We don't have an IPv6 validation function and I didn't feel like writing one, so I left those checks commented out and added a note to jabber_nameprep_validate (which is increasingly misnamed).
author Paul Aurich <paul@darkrain42.org>
date Sat, 11 Jul 2009 01:57:14 +0000
parents 167d7c3a4f7b
children e90fa379fcec
line wrap: on
line diff
--- a/libpurple/protocols/jabber/jutil.c	Sat Jul 11 00:49:25 2009 +0000
+++ b/libpurple/protocols/jabber/jutil.c	Sat Jul 11 01:57:14 2009 +0000
@@ -65,9 +65,8 @@
 		return FALSE;
 
 	/*
-	 * This should be more similar to purple_email_is_valid().  Maybe
-	 * that function should even be split up and we should call the part
-	 * that validates the domain name.
+	 * TODO: An IPv6 address of the form [2001:470:1f05:d58::2] is also
+	 * a valid XMPP domain portion.
 	 */
 	c = str;
 	while(c && *c) {