Commit Graph

527 Commits

Author SHA1 Message Date
Mészáros Mihály
5772435c73 add hint fallthrough to compiler to avoid warning 2018-08-01 15:45:24 +02:00
Mészáros Mihály
65d65937d0 Add +2 to not truncate string and avoid warning 2018-08-01 15:44:00 +02:00
Mészáros Mihály
b742f4c72b Merge branch 'fix-ipv6' 2018-08-01 14:23:02 +02:00
Mészáros Mihály
7f273834af
Merge pull request #236 from appearin/reload-tls-certs
Make SIGUSR2 reload TLS certificates
2018-08-01 13:34:06 +02:00
Mészáros Mihály
ab07d244b4 fix get_family 2018-07-24 15:04:08 +02:00
damencho
4133ad8d54 Fixes leaking udp6 sockets.
Guess address family from client socket address when STUN_ATTRIBUTE_REQUESTED_ADDRESS_FAMILY is missing.
2018-07-24 14:47:54 +02:00
Mészáros Mihály
2c14c76780 Fix mixed user/total quota params 2018-05-11 08:05:23 +02:00
Mészáros Mihály
3e18581b88 Revert "fix quota options"
This reverts commit 59ee141ff0.
2018-05-11 07:55:21 +02:00
Arne Georg Gisnås Gleditsch
6bc4bab95b Make SIGUSR2 reload TLS certificates
This commit does the following:

* Factor out loading of TLS keys and certificates into turn_params SSL
  context so that it can be repeated. (Contexts are not overwritten
  when loading encounters errors, but initial contexts will be set
  regardless of errors. This keeps existing semantics.)
* Isolate copying of turn_params SSL context to ioa_engine structs
  into callback functions appropriate for libevent invocation.
* Chain both of the above to a signal event handler responding to
  SIGUSR2.

This allows replacement of keys and certificates during run-time
without interrupting relaying operations.
2018-04-19 14:51:07 +02:00
Bradley T. Hughes
e55e13d23e Update total usage on client shutdown
Call turn_report_session_usage() from shutdown_client_connection(), so
that any accumulated packets and data sent/received gets added to the
totals before passing it to report_turn_session_info(). This also
ensures that the total_traffic message sent to redis contains correct
values.

Add a force_invalid argument to turn_report_session_usage() to ensure
that report_turn_session_info() is still called when the former is
called from shutdown_client_connection(). This should avoid any
unexpected change in behavior.
2018-02-09 20:54:10 +01:00
Mészáros Mihály
d89fcb28fc Fix Verbose config option & -v cli option override 2018-01-08 11:31:17 +01:00
Mészáros Mihály
436426b9c7 Review PR #160 2017-12-15 15:37:45 +01:00
Mészáros Mihály
aaac85355d Merge branch 'config_credential_fix' of https://github.com/skystar-p/coturn into skystar-p-config_credential_fix 2017-12-15 15:01:05 +01:00
Oleg Moskalenko
a921f0ccc4 version bumped up and some spelling errors fixed 2017-12-11 23:24:54 -08:00
Oleg Moskalenko
6eb452d560 bumping up the release version 2017-12-10 17:56:33 -08:00
Bradley T. Hughes
86967b93f3 Report total traffic used per allocation via Redis
Publish total traffic information when an allocation is deleted. This
makes it easier for applications to monitor total usage per session.
2017-11-20 13:58:50 +01:00
mom040267
af09102a3c Merge pull request #119 from ngvoice/master
Enhancement: Add option to disable Web-Management-Interface
2017-09-30 21:16:40 -07:00
Mészáros Mihály
836bc601da indent 2017-09-29 15:04:55 +02:00
Mészáros Mihály
4b22e6fae6 Add mapping lifetime discovery 2017-09-29 14:53:41 +02:00
Mészáros Mihály
298e9efa41 hairpinning fixes 2017-09-29 14:53:41 +02:00
Mészáros Mihály
9d52282242 fix init_socket 2017-09-29 14:53:41 +02:00
Mészáros Mihály
e092f490f8 hairpinning usage 2017-09-29 14:53:41 +02:00
Mészáros Mihály
3a99678ac1 Add hairpinning check 2017-09-29 14:49:00 +02:00
Mészáros Mihály
b86be4e006 rephrase 2017-09-29 14:49:00 +02:00
Mészáros Mihály
24919cb8f4 refactor stun client (send/receive) 2017-09-29 14:49:00 +02:00
Mészáros Mihály
87866887d3 ALG fix 2017-09-29 14:49:00 +02:00
Mészáros Mihály
22cc19e53c Add ALG detection discovery 2017-09-29 14:49:00 +02:00
Mészáros Mihály
e93bbd2137 Add padding and tidy 2017-09-29 14:49:00 +02:00
Mészáros Mihály
43cfc4fe70 Add collision test 2017-09-29 14:31:44 +02:00
skystar-p
584a6cdf9b added config warning about using use-auth-secret 2017-07-03 12:06:18 +09:00
Carsten Bock
c48835e230 Enhancement: Add option to disable Web-Management-Interface 2017-04-10 14:49:55 +02:00
Oleg Moskalenko
6aa8b7685b code cleaning 2017-03-26 20:11:03 -07:00
Paride Legovini
8ca94d0238 Typo in the ALPN callback: ta_len should be ha_len
Fixes #113.
Credit for the fix goes to @davidben.
2017-03-23 23:37:22 +01:00
Oleg Moskalenko
ef1fd15b22 minor uclient fix 2016-12-08 00:19:53 -08:00
Oleg Moskalenko
069f813cd5 TLS1.2 fixed 2016-12-07 23:40:36 -08:00
Oleg Moskalenko
516e534ef2 docs updated 2016-11-13 23:45:23 -08:00
Oleg Moskalenko
3cdb507c9a working on merge fix 2016-11-13 23:10:42 -08:00
yohan
e241d0c71f Add "--prod" to turnserver command-line options. It will hide turnserver version (like apache does).
This is a common corporate security requirement.
2016-10-27 17:48:32 +02:00
Oleg Moskalenko
067d49238d version bumped 2016-10-18 00:06:13 -07:00
Oleg Moskalenko
95eec6b88b minor cleaning 2016-10-03 22:48:40 -07:00
Richard Garnier
027a760066 fix memory initialization 2016-10-04 09:50:05 +09:00
Richard Garnier
d3170343db fix #63 issue 2016-09-26 11:04:37 +09:00
Oleg Moskalenko
2434b95e89 Merge branch 'permission' of https://github.com/akatsukle/coturn into akatsukle-permission 2016-09-25 00:01:14 -07:00
Oleg Moskalenko
bd5ff5fe2f Merge branch 'channel-lifetime' of https://github.com/akatsukle/coturn into akatsukle-channel-lifetime 2016-09-24 23:49:36 -07:00
Oleg Moskalenko
f581dec843 docs fixed 2016-09-24 23:19:11 -07:00
Oleg Moskalenko
ec0a0fdb5f C++ compilation fixed 2016-09-24 23:15:30 -07:00
Oleg Moskalenko
49e632d37f Merge branch 'lifetime-p' of https://github.com/akatsukle/coturn into akatsukle-lifetime-p 2016-09-24 23:04:34 -07:00
Oleg Moskalenko
90fd7546a8 docs adjusted 2016-09-24 21:17:43 -07:00
Richard Garnier
2128253b31 channel lifetime 2016-09-20 15:04:28 +09:00
Richard Garnier
98e7a36515 permission lifetime 2016-09-20 14:55:45 +09:00