From: Thadeu Lima de Souza Cascardo Date: Fri, 22 Sep 2006 21:12:55 +0000 (+0000) Subject: Accept XML text declaration for Jabber initiating data X-Git-Tag: v0.1.3~125 X-Git-Url: http://git.cascardo.eti.br/?p=cascardo%2Frnetproxy.git;a=commitdiff_plain;h=488f6e01646ba8f2e6941fbea8382f2c431f70a6 Accept XML text declaration for Jabber initiating data For the purpose of protocol detection, accepts XML text declaration as indication of the Jabber protocol. Gaim, for example, uses that, and XMPP Core recommends its use (SHOULD). --- diff --git a/proto_detect.c b/proto_detect.c index 57bd01a..112ff93 100644 --- a/proto_detect.c +++ b/proto_detect.c @@ -42,7 +42,8 @@ static void proto_read (net_hook_t* hook, gchar* buffer, size_t len) g_string_append_len (str, buffer, len); if (str->len >= 7) { - if (!strncmp (str->str, "str, "str, "