Software /
code /
prosody
Comparison
plugins/mod_c2s.lua @ 11614:1ac8976f09a9
mod_c2s: Add a Direct TLS listener
This only differs from 'legacy_ssl' in name, at least on the server
side. For clients this is the one that uses SRV records.
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Sun, 20 Jun 2021 16:51:08 +0200 |
parent | 11608:b2610460d9ab |
child | 11618:8f0fe74ede94 |
comparison
equal
deleted
inserted
replaced
11613:c8a9f77d48fd | 11614:1ac8976f09a9 |
---|---|
424 pattern = "^<.*:stream.*%sxmlns%s*=%s*(['\"])jabber:client%1.*>"; | 424 pattern = "^<.*:stream.*%sxmlns%s*=%s*(['\"])jabber:client%1.*>"; |
425 }; | 425 }; |
426 }); | 426 }); |
427 | 427 |
428 module:provides("net", { | 428 module:provides("net", { |
429 name = "direct_tls"; | |
430 listener = listener; | |
431 encryption = "ssl"; | |
432 multiplex = { | |
433 pattern = "^<.*:stream.*%sxmlns%s*=%s*(['\"])jabber:client%1.*>"; | |
434 }; | |
435 }); | |
436 | |
437 -- COMPAT | |
438 module:provides("net", { | |
429 name = "legacy_ssl"; | 439 name = "legacy_ssl"; |
430 listener = listener; | 440 listener = listener; |
431 encryption = "ssl"; | 441 encryption = "ssl"; |
432 multiplex = { | 442 multiplex = { |
433 pattern = "^<.*:stream.*%sxmlns%s*=%s*(['\"])jabber:client%1.*>"; | 443 pattern = "^<.*:stream.*%sxmlns%s*=%s*(['\"])jabber:client%1.*>"; |