Commit Graph

269 Commits

Author SHA1 Message Date
Stefan Hacker
ce83353dbd Make opustreshold and channelnestinglimit accept zero values in setLiveConf. 2012-11-04 18:06:31 +01:00
Stefan Hacker
145d9f96f5 Introduce channel nesting limit (default=10).
Add NestingLimitException to Ice Interface and introduce a new NestingLimit PermissionDenied type.
Addresses #3566322 "ServerDB::deleteServer crashes master"
2012-09-18 17:50:07 +02:00
Stefan Hacker
aa580f392c Trigger codec re-negotiation also on user disconnect and when opusthreshold is set.
- Call recheckCodecVersion on AuthenticatedClient disconnect.
- Make every recheckCodecVersions() call switching to Opus send a message to users only supporting CELT.
2012-08-06 02:29:20 +02:00
Benjamin Jemlich
994e130a9d Murmur: Fix message type detection in Server::processMsg and add a few more comments
Bug found by Rok Kek <rok.kek@gmail.com> which could affect Opus packets.
2012-07-16 19:29:53 +02:00
Benjamin Jemlich
7ec4f6a67c Murmur: Add codec warnings and ignore non-Opus packets if Opus is enabled
Also includes the CELT warning for "broken" clients by Nicos Gollan.
2012-06-08 23:55:56 +02:00
Benjamin Jemlich
f0c16f33ba Murmur: add Opus threshold option 2012-06-08 08:44:02 +02:00
Benjamin Jemlich
84ed2eb84f Murmur: Remove unused DBus.h includes 2012-05-31 13:00:39 +02:00
Benjamin Jemlich
e5c4657c05 Save one more byte in the Opus terminator 2012-03-20 16:03:30 +01:00
Benjamin Jemlich
bd195cd695 Improve Opus terminator flag 2012-03-20 15:05:32 +01:00
Benjamin Jemlich
491cd1eb44 Misc fixes 2012-02-26 08:36:19 +01:00
Benjamin Jemlich
cc8e245c53 Mark Server::log as const 2012-01-14 22:47:32 +01:00
Benjamin Jemlich
8667e6d51d Fix Speak ACL for users entering a channel
clearACLCache doesn't just clear the cache, it also adds
some entries, which might be wrong if we're calling it before
changing the channel for a user. Fix this by not using the cache
for the ACL test.
2012-01-08 13:01:14 +01:00
Benjamin Jemlich
2b9e094ab2 Allow using ChanACL::hasPermission without a cache 2012-01-08 12:59:47 +01:00
Benjamin Jemlich
fc322ea171 Fix compile error 2012-01-07 01:18:53 +01:00
Benjamin Jemlich
17eb6cce39 Apply suppress ACL before switching channels
People were able to send a few voice packets to the new channel
prior to being switched to their new channel. Applying the Whisper ACL
before changing the current channel should fix that.
2012-01-07 00:52:26 +01:00
Benjamin Jemlich
356bd2ea7a Obey Whisper ACL for User-to-User Whispers 2012-01-07 00:41:51 +01:00
Benjamin Jemlich
87376a937c Fix strong cert check for self-signed server certificates
If the server is using a self-signed certificate the strong
certificate check for the client cert will fail with a
"The certificate is self-signed" error even if it's a valid
cert. It looks like Qt is propagating the "error" for the server
certificate to the client cert check. Adding the server certificate
as a CA certificate fixes the problem.
2012-01-04 14:08:57 +01:00
Benjamin Jemlich
29e7a54d30 Change Opus packets to remove the library hack 2011-11-20 01:05:18 +01:00
Benjamin Jemlich
bb2ef526aa Windows build fixes 2011-11-11 18:56:14 +01:00
Benjamin Jemlich
07737a314c Fix include guards and PCH includes 2011-11-09 00:12:10 +01:00
Thorvald Natvig
86fc793a5d Opus codec negotiation (server) 2011-11-06 19:00:33 -08:00
Benjamin Jemlich
7586a61226 Add basic Opus support 2011-11-05 23:21:22 +01:00
DNW
a8975fe6bc Add Server::effectivePermissions() to ICE (https://sourceforge.net/tracker/?func=detail&aid=3389065&group_id=147372&atid=768008) 2011-10-01 18:37:48 +02:00
Benjamin Jemlich
eeb1737be4 Fix UDP problems on IPv4 only hosts
The kernel (at least older versions) want the exact length of the control data
otherwise it will discard the packet.
2011-06-15 08:15:15 +02:00
Thorvald Natvig
7de5ebc18f Indent, changelog, submodule and language update 2011-06-11 02:58:17 +02:00
Benjamin Jemlich
fbeed39c02 Fix iObfuscate for IPv6
IPv6-mapped IPv4 addresses contain to many zeros to
use XOR without revealing the "key". Switching the
output to a sha1 hash of the random value + the address
solves the problem. We don't include the port in the hash
because it's useful to see which connection attempts were
from the same IP address even if you can't read the actual
value.
2011-05-16 11:36:49 +02:00
Thorvald Natvig
45bd8139fe Fix murmur warnings 2011-05-15 16:45:46 -07:00
Benjamin Jemlich
7529297760 Fix uppercase vs lowercase vs PCH include problems 2011-05-15 17:15:54 +02:00
Benjamin Jemlich
900f1e5677 Opus support for the server
Untested but should work because it's only a minor modification
of the existing CELT/Speex code.
2011-05-14 10:09:08 +02:00
Benjamin Jemlich
6d6afca9b0 Fix changing iMaxUsers
Lowering the user limit and raising it again would add duplicate
session IDs to the session ID queue.

Recreate the queue if the limit changes to fix the problem and
ignore IDs which are too high for the new user limit when
someone disconnects.
2011-05-14 09:39:33 +02:00
Thorvald Natvig
07bf14614a Use TCP destination as UDP source 2011-05-11 07:25:56 +02:00
Thorvald Natvig
d96648ef25 Answer ping from same UDP address sent to (Linux only for now) 2011-05-08 10:41:35 +02:00
Thorvald Natvig
94967abfd8 Suggest Config 2011-03-25 19:54:26 -07:00
Thorvald Natvig
f3437a6ba7 Update copyright year ranges of dev team. 2011-03-18 05:52:51 +01:00
Benjamin Jemlich
7c66886bab Move bDisconnectEmitted down by one level 2010-12-24 00:55:45 +01:00
Stefan Hacker
f642271775 Prevent server from forward audio from muted clients 2010-12-20 23:57:35 +01:00
Stefan Hacker
b8a2745ce7 Fix two signed|unsigned comparison warnings 2010-12-03 14:19:26 +01:00
Stefan Hacker
e8a2bb5ee9 Prepare murmur for user defined server locations 2010-12-03 14:14:05 +01:00
Benjamin Jemlich
933a9dd84a Don't reset the connection timeout until the user is authenticated 2010-11-21 05:14:15 +01:00
Benjamin Jemlich
ba6bd1e83e Fix codec selection and outdated bitstream constants 2010-10-06 01:22:25 +02:00
Stefan Hacker
a8a21296f2 TextMessage recording warning for pre 1.2.3 clients + Comments + minor refactoring 2010-09-05 23:16:09 +02:00
Jamie Fraser
bf561d3aaa Toggle setting (rememberchannel) for remembering a registered users last channel. 2010-08-11 14:49:57 +02:00
Benjamin Jemlich
2997897f24 Fix some gcc and cppcheck warnings 2010-07-20 17:31:01 +02:00
Thorvald Natvig
ab4a82fa82 Indent, changelog, submodule and language update 2010-05-18 14:40:18 +02:00
Stefan Hacker
02811bc285 Make sure temporary group memberships of a user are purged once he disconnects 2010-04-29 15:53:43 +02:00
Thorvald Natvig
e9ed4149aa Change session queue dynamically 2010-03-27 11:43:12 +01:00
Thorvald Natvig
06fec274dd Work around WSAAsyncSelect and WSAEventSelect overlapping on Win32 2010-03-10 18:24:20 +01:00
Thorvald Natvig
6f637c6f03 Indent, changelog, submodule and language update 2010-01-29 13:13:36 +01:00
Thorvald Natvig
7a2061c651 Propagate a few server config options to the client 2010-01-28 13:33:21 +01:00
Thorvald Natvig
7d8100275d Split ServerUser from Server.cpp 2010-01-28 12:34:38 +01:00