Software /
code /
verse
Comparison
client.lua @ 459:6be4182cfb31
client: Don't enable session plugin by default, that protocol is obsolete
author | Matthew Wild <mwild1@gmail.com> |
---|---|
date | Thu, 16 Mar 2023 11:42:58 +0000 |
parent | 458:6c3797c0bb44 |
child | 460:a523535d8937 |
comparison
equal
deleted
inserted
replaced
458:6c3797c0bb44 | 459:6be4182cfb31 |
---|---|
98 | 98 |
99 -- Required XMPP features | 99 -- Required XMPP features |
100 self:add_plugin("tls"); | 100 self:add_plugin("tls"); |
101 self:add_plugin("sasl"); | 101 self:add_plugin("sasl"); |
102 self:add_plugin("bind"); | 102 self:add_plugin("bind"); |
103 self:add_plugin("session"); | |
104 | 103 |
105 function self.data(conn, data) | 104 function self.data(conn, data) |
106 local ok, err = self.stream:feed(data); | 105 local ok, err = self.stream:feed(data); |
107 if ok then return; end | 106 if ok then return; end |
108 self:debug("Received invalid XML (%s) %d bytes: %s", tostring(err), #data, data:sub(1, 300):gsub("[\r\n]+", " ")); | 107 self:debug("Received invalid XML (%s) %d bytes: %s", tostring(err), #data, data:sub(1, 300):gsub("[\r\n]+", " ")); |