adhearsion / blather

XMPP/Jabber Library and DSL for Ruby written on EventMachine and Nokogiri.
adhearsion.com/blather
Other
556 stars 89 forks source link

Starttls first when present #175

Closed singpolyma closed 2 years ago

singpolyma commented 2 years ago

Supersedes #168 by pulling the TLS check to the top of the method instead of changing the loop behaviour.

When running a Prosody with c2s_encryption_required = false without this patch blather crashes, with it starttls happens as expected.

bklang commented 2 years ago

Thanks for the contribution!