Commit Graph

1539 Commits

Author SHA1 Message Date
KORAY VATANSEVER
22af3ea567 Add syslog facility configuration 2021-07-07 15:56:30 +03:00
Daniil Meitis
99aa623aaf Add current allocations number gauge metric 2021-06-21 17:21:17 +04:00
tyranron
553ce02168
Upgrade alpine to 3.14 version in Docker image 2021-06-21 11:30:40 +03:00
Mészáros Mihály
ee432e160f Fix for log_binding (regression) 2021-06-17 13:06:02 +02:00
Mészáros Mihály
6492f51a63
Merge pull request #767 from ggalperi/patch-1
Fix server->log_binding usage
2021-06-17 12:57:45 +02:00
Mark Hills
713bbefd5e Fix a segfault when a TLS context is not used
If the configuration contains entries such as:

  no-tlsv1
  no-tlsv1_1

then the SSL context is NULL. The previous code was simple enough that it
handled this case; the new code needs to deal with it explicitly.

[*] https://github.com/coturn/coturn/issues/770
2021-06-15 23:44:02 +02:00
Mészáros Mihály
e5f62d5c67
Travis.org is not compiling the latest master.
Travis.org is shutting down, not compliling the latest master source. We need to move all checks to travis.com if it is possible.
2021-06-06 09:38:51 +02:00
Mészáros Mihály
4ee8f8e7d8 Update man pages 2021-06-05 22:10:31 +02:00
Mészáros Mihály
7ad04a37d6 Not send SOFTWARE attr, if no_sotware_attribute on 2021-06-05 22:10:31 +02:00
Mészáros Mihály
708b83ea78 RESPONSE_ORIGIN attribute only if rfc5780 is on 2021-06-05 22:10:31 +02:00
Mészáros Mihály
54ef051844 Disable stun backward compatibility 2021-06-05 22:10:31 +02:00
Mészáros Mihály
e7ddfb4f4b Tidy in turnserver.conf rfc5780 option 2021-06-05 22:10:31 +02:00
Mészáros Mihály
398a606744 Update man after README change 2021-06-05 22:10:31 +02:00
Mészáros Mihály
eda11698f0 Add option no-rfc5780
To avoid any amplifiaction STUN binding attacks.
2021-06-05 22:10:31 +02:00
Mészáros Mihály
8c9622ad18 Add a check, don't SSL_CTX_up_ref a null pointer
This cause segmentation failure. Regression..
2021-06-05 22:10:31 +02:00
Mészáros Mihály
88f5119e1b Include ssl.h 2021-06-05 22:10:31 +02:00
tyranron
9ba8ab38e4
Aid alpine Docker image for 4.5.2 Coturn release 2021-06-03 14:22:51 +03:00
tyranron
6953126633
Prepare 4.5.2-r1 release of Docker image 2021-06-03 10:19:12 +03:00
Kai Ren
55b506c4a2
Merge pull request #753 from j1elo/master
Use DNS requests to discover external IP address
2021-06-03 10:09:29 +03:00
Haseeb Abdul Qadir
e88de80abd Make sure we zero out any padding added to the attribute 2021-05-22 11:53:25 -04:00
Haseeb Abdul Qadir
93c5387180 Avoid using bzero for the entire stun_buffer_list_elem and only init metadata
On high traffic servers bzero -> memset takes a significant amount of time because each stun_buffer_list_elem can be ~64kb
2021-05-21 07:51:45 -04:00
tyranron
f2f8796e8c
Hack IFS in 'detect-external-ip' script of Docker image to support both Debian and Alpine 2021-05-17 23:38:38 +03:00
tyranron
484c88ea2a
Disable IPv6 tests of Docker image by default 2021-05-17 21:09:00 +03:00
tyranron
7ed7c438a7
Add tests for 'detect-external-ip' script of Docker image 2021-05-17 20:40:49 +03:00
tyranron
e5af5a813f
Get rid of nasty subshell in 'detect-external-ip' script of Docker image 2021-05-17 20:40:24 +03:00
tyranron
e921203fdb
Mention IPv6 detection capability in README of Docker image 2021-05-17 19:02:33 +03:00
tyranron
311b01507a
Merge branch 'master' into j1elo
# Conflicts:
#	docker/coturn/CHANGELOG.md
#	docker/coturn/alpine/Dockerfile
#	docker/coturn/debian/Dockerfile
2021-05-17 18:56:59 +03:00
ggalperi
0ac3fda6dd
Fix server->log_binding usage
The server->log_binding ptr should be dereferenced
2021-05-14 16:34:52 -04:00
Mészáros Mihály
d8026372af Remove trusty add focal 2021-05-08 06:39:35 +02:00
Mészáros Mihály
8fbe513300 Fix typo (---allow-loopback-peers) 2021-05-07 21:25:40 +02:00
Mészáros Mihály
dd1b11da80 Update Changelog with PR#739 2021-05-07 21:23:24 +02:00
Mészáros Mihály
d90c689c99
Merge pull request #739 from hills/ssl-reload-crashes
SSL reload has hidden bugs which cause crashes
2021-05-07 21:10:18 +02:00
Mészáros Mihály
a264b1652e
Merge pull request #754 from coturn/prometheus-in-docker
Support Prometheus in Docker image
2021-05-02 21:32:56 +02:00
Serhii Charykov
0f7ff3ec4a Change sqlite_init_multithreaded return type to void
to satisfy pthread_once() interface because
previously return from sqlite_init_multithreaded
was not used
2021-04-26 23:47:11 +03:00
Serhii Charykov
2d12ad4f29 Refactor code 2021-04-26 23:34:24 +03:00
Serhii Charykov
34e18533cf Fix sqlite3_config call only once before using any other sqlite utilities 2021-04-26 22:19:16 +03:00
Serhii Charykov
0b709a05b7 Remove sqlite3_shutdown()
Because:
1. According to sqlite3 docs sqlite3_initialize() and sqlite3_shutdown() are not must to be invoked
2. sqlite3_initialize() is never called explicilty
3. sqlite3_shutdown() is not threadsafe and sqlite_init_multithreaded is not called holding a lock
4. According to docs all connections must be closed before invoking sqlite3_shutdown() but they are not (from the different threads).

Possible issue:
sqlite3_config must be called before sqlite3_initialize() or after sqlite3_shutdown() (and only once?)
2021-04-26 21:36:28 +03:00
tyranron
d6acc31652
Fix passing Git reference to Docker image build 2021-04-22 13:53:59 +03:00
tyranron
a775ca47e2
Link libatomic explicitly in debian Docker image 2021-04-22 13:53:18 +03:00
tyranron
8c0830daa9
Add prometheus-client-c to Docker image
Co-authored-by: SammyEnigma <samthebest1993@gmail.com>
2021-04-21 18:29:17 +03:00
tyranron
60ef0e1007
Merge branch 'master' into j1elo
# Conflicts:
#	docker/coturn/CHANGELOG.md
2021-04-20 18:08:52 +03:00
tyranron
32e97730e9
Fix linking with mongo-c-driver in debian Docker image 2021-04-20 14:55:31 +03:00
tyranron
4befd37d9e
Fill up CHANGELOG 2021-04-20 10:37:08 +03:00
tyranron
8b8660530e
Avoid duplication via common rootfs/ dir 2021-04-20 10:36:52 +03:00
Juan Navarro
24dbd9459d Use DNS requests to discover external IP address
Using DNS requests is a much more robust and reliable method to discover
a machine's external IP address, instead of the previous method of using
Curl against an HTTP service.

Using Curl is fine, but the kind of services that are typically used
(here it was icanhazip.com, but there are lots more with a similar
behavior) are are not as dependable as the official DNS request methods
supported by some of the biggest service providers.

This uses "dig", which Alpine provides in the package "bind-tools" and
Debian in "dnstools".
2021-04-19 12:56:08 +02:00
tyranron
b31b004922
Separate Docker image's GitHub release into its own job to run it only once
- fix naming of Docker image's GitHub releases
2021-04-16 10:05:51 +03:00
tyranron
f34e9e89c6
Fix Docker image's changelog for 4.5.2-r0 release 2021-04-16 09:51:35 +03:00
tyranron
e6e5a65f72
Fix Docker image version tagging and missing pushing to Quay.io 2021-04-15 21:16:20 +03:00
tyranron
6084881400
Finally fix Docker image tests 2021-04-15 19:39:30 +03:00
tyranron
07580f2f63
Fix CI badge in Docker image's README 2021-04-15 18:28:06 +03:00