ChillerDragon
7a7caabbec
Fix inconsistant uppercase server in logs
2019-04-30 09:03:06 +02:00
Dennis Felsing
cde07b420b
Implement changes suggested by -Wuseless-cast
...
But don't enable it yet because I'm not sure what the best way is.
2019-04-11 19:54:43 +02:00
def
ea093f6d39
2 more tries to force DB to respond in UTF8 ( fixes #1599 )
2019-04-08 16:55:53 +02:00
def
25c54ef4db
Implement show_ips to protect accidental leaking of IPs
...
Marks all sensitive data with <{ }> and then filters that out when
show_ips is not set.
2019-04-06 19:22:02 +02:00
heinrich5991
e44b1ca986
Use OpenSSL md5 if it is available
...
Fixes #1582 .
2019-04-06 02:56:29 +02:00
12pm
a7ef921e3f
Add playerflags, dnsbl, and ips for non-admins in status
2019-04-03 15:07:05 +02:00
Dennis Felsing
8b68a2859a
Merge pull request #1509 from ddnet/error-checking
...
More error checking in system.c (fixes #1317 )
2019-03-20 07:44:12 +01:00
def
1e4890c499
More error checking in system.c ( fixes #1317 )
2019-03-19 23:16:29 +01:00
12pm
9f4f06e995
Make updating nameban reason work
2019-03-19 22:54:16 +01:00
def
6f9cfd5af1
Increase MAX_PATH_LENGTH to support our own downloadedmaps names
2019-03-12 18:43:03 +01:00
Dennis Felsing
b8c256b602
Merge pull request #1467 from 12pm/nameban_exact
...
Add exact name ban option
2019-03-11 22:50:39 +01:00
12pm
3dcb83778f
Make name more descriptive
2019-03-11 14:48:45 +01:00
bors[bot]
26dc51a272
Merge #1466
...
1466: Add colors for authed players. Deprecates #1299 r=def- a=Learath2
Not sure if a snap item is the best idea for this but it should help with not sending the data more then needed and keeping it properly updated. The colors aren't great now but we can fix that easily.
![image](https://user-images.githubusercontent.com/490500/53680889-607bf780-3cf2-11e9-84a0-579160e9e170.png )
Co-authored-by: Learath <learath2@gmail.com>
2019-03-06 13:44:28 +00:00
def
deb2494692
Don't suggest to downgrade, clean up versioning ( fixes #1440 )
2019-03-03 20:31:23 +01:00
12pm
29592afdb5
Add exact name ban option
2019-03-03 18:29:33 +01:00
Learath
548e9969b2
Add colors for authed players. Deprecates #1299
2019-03-02 13:50:33 +03:00
def
65ce202697
Revert "More SQL fixes"
...
This reverts commit c665cabc27
.
2019-02-28 06:14:30 +01:00
def
f831f27d08
Revert "New SQL locking on each query ( fixes #1430 )"
...
This reverts commit 5ddcf8bd0c
.
2019-02-28 06:14:20 +01:00
Dennis Felsing
6701ae726f
Merge pull request #1434 from ddnet/sql-locking
...
Sql locking
2019-02-27 20:26:24 +01:00
Dennis Felsing
6f3d261b73
Merge pull request #1441 from trml/pr_sync_weapon_input
...
Sync weapon input with other input
2019-02-14 10:27:52 +01:00
ChillerDragon
3f8e9613f7
Fix style
2019-02-06 13:06:28 +01:00
ChillerDragon
03a20d6406
Add IServer::Ban
2019-02-04 23:09:14 +01:00
trml
3f9d30af0f
Sync weapon input with other inputs
2019-01-29 20:58:25 +01:00
def
5ddcf8bd0c
New SQL locking on each query ( fixes #1430 )
2019-01-14 22:28:13 +01:00
Dennis Felsing
c665cabc27
More SQL fixes
...
Should help with some crashes
Still doesn't call thread_init
Still shares statements and connections between threads
2019-01-14 22:18:37 +01:00
def
b1ef2bf864
Don't try to remove non-existing files
...
Causes annoying error messages during map change & server start.
2019-01-14 22:13:51 +01:00
fokkonaut
fe4426b008
fixed ddrace score (time score)
2019-01-14 08:01:20 +01:00
fokkonaut
0e842359ad
Add DDRace Score NETMSG
2019-01-14 08:01:20 +01:00
def
da2fe3cbbc
Revert "More SQL fixes"
...
This reverts commit a58ade137d
.
2019-01-06 10:59:29 +01:00
Dennis Felsing
a58ade137d
More SQL fixes
...
Should help with some crashes
Still doesn't call thread_init
Still shares statements and connections between threads
2018-12-27 14:31:58 +01:00
Dennis Felsing
8d200d1026
Try resetting m_pConnection to 0 to prevent segfault
2018-12-20 09:26:45 +01:00
Dennis Felsing
735e3c64fc
Read fifo more often
...
otherwise we lose messages since we sleep for long times when server is
empty
2018-12-20 09:18:03 +01:00
def
6846a6ecad
Fixes and stress improvements
2018-12-17 20:05:50 +01:00
Dennis Felsing
e9ee74a941
Merge pull request #1402 from ddnet/remove-modhelp
...
Remove /modhelp (fixes #1401 )
2018-12-17 14:42:07 +01:00
Dennis Felsing
9febf58f37
New try at recvmmsg with some improvements
2018-12-16 22:59:41 +01:00
Dennis Felsing
5c18d6c481
Remove /modhelp ( fixes #1401 )
2018-12-12 10:05:44 +01:00
Learath
5b95eddca1
DRY with net_addr_comp_noport
2018-10-08 21:04:04 +03:00
Learath
254ff3dc6b
Oversight
2018-10-08 20:56:49 +03:00
Learath
2e137e6fc7
net_addr_comp_ip -> net_addr_comp_noport
2018-10-08 19:56:51 +03:00
Learath
1073b72965
Ignore DNSBL on "empty" servers.
2018-10-08 01:59:07 +03:00
heinrich5991
a36250ba34
Use two threads for the server thread pool
...
This might help with long DNS timeouts.
2018-10-07 12:47:32 +02:00
Dennis Felsing
925f7b6325
Fix weird Windows compilation
2018-08-29 11:32:36 +02:00
Dennis Felsing
a63f210a01
Fix segfault when deleting lock
2018-08-29 10:32:12 +02:00
Dennis Felsing
c29a72eb70
Lock style
2018-08-27 16:36:36 +02:00
Dennis Felsing
4d634bb7fd
Global lock for MySQL Connector's get_driver_instance
...
See note in https://dev.mysql.com/doc/connector-cpp/1.1/en/connector-cpp-examples-connecting.html
> get_mysql_driver_instance() calls get_driver_instance(), which is not
> thread-safe. Either avoid invoking these methods from within multiple
> threads at once, or surround the calls with a mutex to prevent
> simultaneous execution in multiple threads.
2018-08-27 09:42:37 +02:00
Dennis Felsing
03098af933
Fix dnsbl initialization
...
Don't set dnsbl state to pending when we someone connects over ipv6 and
the init will fail, leaving a null pointer in m_pDnsblLookup
2018-08-24 14:24:34 +02:00
heinrich5991
8d04e7e5e1
Share libcurl resources across requests
...
Use the libcurl-share interface to share DNS cache and connections
between different requests.
If compiled with OpenSSL, libcurl can only be safely used from multiple
threads for OpenSSL >= 1.1.0, but this problem is not newly introduced
by this commit: According to libcurl-thread(3):
>OpenSSL <= 1.0.2 the user must set callbacks.
>
>https://www.openssl.org/docs/man1.0.2/crypto/threads.html#DESCRIPTION
>
>https://curl.haxx.se/libcurl/c/opensslthreadlock.html
2018-07-11 20:17:21 +02:00
yangfl
81a39c229b
Fix typo
2018-07-10 17:29:02 +08:00
heinrich5991
925aff21d4
Fix all the header guards and adjust the script a little
2018-07-06 16:11:38 +02:00
heinrich5991
ca8fcc823c
Use more secure hash function for map downloads
...
SHA256 was chosen because it is reasonably standard, the file names
don't explode in length (this rules out SHA512) and it is supported by
basically all versions of OpenSSL (this rules out SHA512/256 and SHA3).
The protocol is changed in a backward compatible way: The supporting
server sends the SHA256 corresponding to the map in the `MAP_DETAILS`
message prior to sending the `MAP_CHANGE` message. The client saves the
SHA256 obtained from the `MAP_DETAILS` message until the next
`MAP_CHANGE` message.
For servers not supporting this protocol, the client falls back to
simply opening maps like in the previous scheme.
Remove the `map_version` tool, it is not being used and would have been
a little bit effort to update.
Use the OpenSSL implementation of SHA256 if it is supported, otherwise
fall back to a public domain one.
Fix #1127 .
2018-06-24 17:04:50 +02:00