Software / code / prosody-modules
Comparison
mod_tcpproxy/README.markdown @ 4853:3804332c204e
mod_tcpproxy: Reject missing or non-number block-size, as per XEP-0047
| author | Emmanuel Gil Peyrot <linkmauve@linkmauve.fr> |
|---|---|
| date | Fri, 07 Jan 2022 19:55:03 +0100 |
| parent | 1820:8de50be756e5 |
comparison
equal
deleted
inserted
replaced
| 4852:810b0e17d3aa | 4853:3804332c204e |
|---|---|
| 37 A new stream is opened like this: | 37 A new stream is opened like this: |
| 38 | 38 |
| 39 ``` {.xml} | 39 ``` {.xml} |
| 40 <iq type="set" id="newconn1" to="tcp.example.com"> | 40 <iq type="set" id="newconn1" to="tcp.example.com"> |
| 41 <open xmlns='http://jabber.org/protocol/ibb' | 41 <open xmlns='http://jabber.org/protocol/ibb' |
| 42 sid='connection1' | 42 sid='connection1' |
| 43 stanza='message' | 43 block-size='4096' |
| 44 stanza='message' | |
| 44 xmlns:tcp='http://prosody.im/protocol/tcpproxy' | 45 xmlns:tcp='http://prosody.im/protocol/tcpproxy' |
| 45 tcp:host='example.com' | 46 tcp:host='example.com' |
| 46 tcp:port='80' /> | 47 tcp:port='80' /> |
| 47 </iq> | 48 </iq> |
| 48 ``` | 49 ``` |
| 49 | 50 |
| 50 The stanza attribute (currently) MUST be 'message', and a block-size, if | 51 The stanza attribute (currently) MUST be 'message', and block-size is |
| 51 given, is (currently) ignored. | 52 (currently) ignored. |
| 52 | 53 |
| 53 In response to this stanza you will receive a result upon connection | 54 In response to this stanza you will receive a result upon connection |
| 54 success, or an error if the connection failed. You can then send to the | 55 success, or an error if the connection failed. You can then send to the |
| 55 connection by sending message stanzas as described in the IBB XEP. | 56 connection by sending message stanzas as described in the IBB XEP. |
| 56 Incoming data will likewise be delivered as messages. | 57 Incoming data will likewise be delivered as messages. |
| 65 | 66 |
| 66 Todo | 67 Todo |
| 67 ==== | 68 ==== |
| 68 | 69 |
| 69 - ACLs (restrict to certain JIDs, and/or certain target hosts/ports) | 70 - ACLs (restrict to certain JIDs, and/or certain target hosts/ports) |
| 70 - Honour block-size (undecided) | 71 - Honour block-size |
| 71 - Support iq stanzas for data transmission | 72 - Support iq stanzas for data transmission |
| 72 - Signal to start SSL/TLS on a connection | 73 - Signal to start SSL/TLS on a connection |