aboutsummaryrefslogtreecommitdiff
path: root/src (follow)
Commit message (Collapse)AuthorAgeFilesLines
...
* Don't forget not-persistent rooms in load_permanent_roomsPaweł Chmielowski2020-08-061-12/+7
| | | | | | | | | Only non-persistent rooms that we are storing are those that were hibernated but also have mucsub subscribers in them. I don't think it makes sense to destroy those rooms on restart/reload if we didn't destroy them in first place when last member did leave room, let just handle those rooms like they are persistent, and kill them only when all user unsubscribe from them or they are destroyed from api.
* Improve explanations of cafile optionsBadlop2020-08-031-8/+15
|
* Add support for unix socket in listenersPaweł Chmielowski2020-07-281-11/+35
| | | | To use it you just need to set port value to "unix:/path/to/socket"
* Don't log http errors when socket get closed after processing one requestPaweł Chmielowski2020-07-281-0/+3
|
* In fact misc:try_url/1 is not used anymoreBadlop2020-07-151-25/+1
|
* Fix try_url/1 parsing of uri_parse result format, reported by DialyzerBadlop2020-07-141-8/+9
|
* mod_stun_disco: Fix function specificationHolger Weiss2020-07-111-1/+1
|
* Parse also ServerHost in create_room* commands (#3326)Badlop2020-07-101-1/+2
|
* Fix crash when creating new MUC log file in non-ASCII lang (#3324)Badlop2020-07-101-1/+1
|
* Use the same leading sentence than other sectionsBadlop2020-07-061-1/+1
|
* ejabberd_stun: Filter info/debug messagesHolger Weiss2020-07-011-0/+34
| | | | | Update 'stun' dependency, and drop the info/debug messages now logged by the 'stun' application if OTP's new logging API is used.
* Subscriber should not send message to moderated room (#3222)Badlop2020-06-241-1/+2
|
* ejabberd_logger: Avoid excessive stat callsHolger Weiss2020-06-231-0/+1
| | | | | | | | | | | By default, the logger_std_h module shipped with OTP 21.0 and newer reads the log file information prior to each and every write operation. This is done to play well with external log rotation tools. In order to minimize the performance penalty in situations where the log file is flooded, configure logger_std_h to skip reading the file information as long as no more than one second has passed since it was last read.
* Correctly handle user_regexp acl rules with not matching hostPaweł Chmielowski2020-06-221-4/+4
| | | | This should fix issue reported in issue 3304
* mod_stun_disco: Fix wording of log messageHolger Weiss2020-06-191-1/+1
|
* Document that only ejabberdctl can join and leave a local node (#3049)Badlop2020-06-091-2/+8
|
* Remove old Regexp, the new Re is available since Erlang/OTP R12B-4Badlop2020-06-081-45/+6
|
* Get back some commented specs that required Erlang R12Badlop2020-06-081-7/+4
|
* When updating group in cache, first delete so insert succeeds (#3296)Badlop2020-06-051-0/+1
|
* Handle ets_cache return value in shared roster get_group_opts (#3296)Badlop2020-06-053-3/+7
|
* misc: Don't crash on URLs without port numberHolger Weiss2020-06-031-2/+8
| | | | | | Let misc:uri_parse/1 return default HTTP(S) port number if the URL doesn't specify a port number, analogous to the behavior when USE_OLD_HTTP_URI is defined.
* misc: Make sure uri_parse/1 returns stringsHolger Weiss2020-06-031-0/+2
| | | | | | | The uri_string:parse/1 function returns the URI elements as strings or as binaries depending on the input. Make sure misc:uri_parse/1 returns strings in both cases, analogous to the behavior when USE_OLD_HTTP_URI is defined.
* mod_stream_mgmt: Don't kill new PID on resumptionHolger Weiss2020-06-012-40/+54
| | | | | | | | | | | | | | | | | | | During XEP-0198 resumption, the ejabberd_c2s process that handles the new connection reopens the ejabberd_sm session of the old one. Since commit b4770815c0b0416c21d01507d2908f94c25b3097, the new process adds the new session table entry before the old process removes the old one. While adding the new one, ejabberd_sm checks for old sessions to replace. This check assumes old SIDs compare lower than new ones. This assumption didn't necessarily hold for the session resumption case, where the old SID's timestamp was copied over to the new SID and only the PID was updated. Therefore, the new process was killed if the new PID happened to be smaller than the old one. Fix this by having mod_stream_mgmt use its own SM-ID rather than copying over the old SID's timestamp to the new SID. Thanks to Thilo Molitor and Friedrich Altheide for reporting the issue, and to Thomas Leister for his help with debugging it.
* Use old http_uri, crypto and pg2 only with old Erlang/OTP (#3284)Badlop2020-06-018-14/+53
|
* Rename 'turn_v4_ip' and 'turn_v6_ip' optionsHolger Weiss2020-05-295-35/+36
| | | | | The 'turn_ipv4_address' and 'turn_ipv6_address' option names are probably more intuitive.
* ejabberd_stun: Add 'turn_blacklist' optionHolger Weiss2020-05-211-0/+3
| | | | | | | | The new 'turn_blacklist' listener option allows for specifying one or more IP addresses and/or subnet addresses/masks. The TURN server will refuse to relay traffic from/to blacklisted IP addresses. By default, Teredo and 6to4 addresses are blacklisted, as mandated by RFC 6156 (section 9.1).
* mod_stun_disco: Make 'services' example shorterHolger Weiss2020-05-191-30/+0
| | | | | | Omit the 'tcp' and 'stuns' services from the list of example 'services' in the documentation. For typical use cases, those are less interesting than 'udp' and 'turns' services.
* mod_stun_disco: Offer local IPv6 servicesHolger Weiss2020-05-194-67/+116
| | | | | Also announce local STUN/TURN services listening on IPv6 sockets (unless the 'offer_local_services' option is set to 'false').
* ejabberd_stun: Support IPv6 for TURNHolger Weiss2020-05-193-18/+39
| | | | | The stun application now supports RFC 6156: TURN Extension for IPv6, and therefore needs separate IPv4 and IPv6 relay addresses.
* Let ejabberd_stun listen on IPv6 socketsHolger Weiss2020-05-191-1/+1
| | | | | The stun application now allows IPv6 clients to perform STUN requests and to allocate TURN relays.
* Fix hardcoded URL to register.css and URLS to sections (#3281)Badlop2020-05-191-7/+7
|
* Sort databases alphabetically in options doc (thanks to Neustradamus)(#3246)Badlop2020-05-191-4/+4
|
* Don't crash in mod_muc_log:get_url when mod_muc_log is not enabledPaweł Chmielowski2020-05-151-1/+4
| | | | | Disco on room can call this function even when logger is not enabled, but this room option was enabled previously when logger was active.
* Display installed ejabberd version in webadmin footer (#3272)Badlop2020-05-151-0/+1
|
* Make SQL query more generic for MSSQL compatibility (#3271)yuriyz-w2020-05-151-2/+2
|
* Update *_vcard commands help, so they are better displayed in DocsBadlop2020-05-141-26/+26
|
* Update syntax of some options so they are better displayed in DocsBadlop2020-05-123-13/+13
|
* Fix most EDoc errors, even if that's not used nowadays apparentlyBadlop2020-05-1113-26/+31
|
* If new session Pid exists when sm_remove is called, then keep Ping (#3260)Badlop2020-05-111-1/+8
|
* mod_stun_disco: Bump credentials_lifetime defaultHolger Weiss2020-05-111-13/+18
| | | | | | | | | | | Increase the default lifetime of temporary credentials to 12 hours. ejabberd's built-in TURN server re-queries the temporary password from mod_stun_disco whenever a TURN client attempts to refresh an allocation, and mod_stun_disco will only return the password as long as the credentials didn't expire. Therefore, the credentials lifetime effectively limits the maximum lifetime of a TURN allocation when ejabberd's TURN service is used, so the default value shouldn't be too short.
* Fix link in mod_sip to SIP Docs sectionBadlop2020-05-091-3/+3
|
* Provide minimal mod_bosh configuration exampleBadlop2020-05-091-1/+14
|
* Add link in acme option to ACME section in ejabberd DocsBadlop2020-05-091-1/+1
|
* Remove ancient and rather useless incode ejabberd_commands documentationBadlop2020-05-071-201/+0
|
* Don't use string:take, as it isn't available in Erlang/OTP 19.3 (#3256)Badlop2020-05-071-3/+2
|
* Fix webadmin muc room sorting broken due to trailing slash patch (#3256)Badlop2020-05-071-1/+2
|
* Unconditionally send presence unavailable to all pres_a recipientPaweł Chmielowski2020-05-071-26/+37
| | | | | | | Previously we only send that presence to direct presence recipients if client also sent general self presence (without to attribute). This should help with issue #3245
* Show deprecation warning if ejabberd_xmlrpc is configured as listen module ↵Badlop2020-05-061-0/+7
| | | | (#2915)
* Remove access_commands useless lines, api_permission replaced it years agoBadlop2020-05-061-14/+8
|
* ejabberd_listener: Let supervisor terminate childHolger Weiss2020-05-051-1/+6
| | | | | | | If a TCP connection was closed before the socket was handed over to a supervised child process, let the supervisor terminate the process rather than killing it directly. This avoids crash log entries generated by the supervisor.