diff options
author | Evgeny Khramtsov <ekhramtsov@process-one.net> | 2019-08-02 13:55:48 +0300 |
---|---|---|
committer | Evgeny Khramtsov <ekhramtsov@process-one.net> | 2019-08-02 13:59:42 +0300 |
commit | 5a976719fb821801fd162cde4516085416ef71e6 (patch) | |
tree | 9811d2e4b7da2e4396259a2e1ce7e1c839c5194a /src/mod_proxy65.erl | |
parent | Bump pkix version (diff) |
Introduce 'vcard' option for the modules supporting vCards
The mapping between vCard's XML elements and YAML elements
of 'vcard' option is straightforward. For example, if you
want mod_muc to return the following vCard:
```
<vCard xmlns='vcard-temp'>
<FN>Conferences</FN>
<ADR>
<WORK/>
<STREET>Elm Street</STREET>
</ADR>
</vCard>
```
you need to set the configuration as:
```
modules:
...
mod_muc:
vcard:
fn: Conferences
adr:
-
work: true
street: Elm Street
...
```
Diffstat (limited to 'src/mod_proxy65.erl')
-rw-r--r-- | src/mod_proxy65.erl | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/mod_proxy65.erl b/src/mod_proxy65.erl index bd8cdde6..61e09439 100644 --- a/src/mod_proxy65.erl +++ b/src/mod_proxy65.erl @@ -121,7 +121,9 @@ mod_opt_type(recbuf) -> mod_opt_type(shaper) -> econf:shaper(); mod_opt_type(sndbuf) -> - econf:pos_int(). + econf:pos_int(); +mod_opt_type(vcard) -> + econf:vcard_temp(). mod_options(Host) -> [{ram_db_type, ejabberd_config:default_ram_db(Host, ?MODULE)}, @@ -132,6 +134,7 @@ mod_options(Host) -> {ip, undefined}, {port, 7777}, {name, ?T("SOCKS5 Bytestreams")}, + {vcard, undefined}, {max_connections, infinity}, {auth_type, anonymous}, {recbuf, 65536}, |