fokkonaut
0e842359ad
Add DDRace Score NETMSG
2019-01-14 08:01:20 +01:00
Learath
1073b72965
Ignore DNSBL on "empty" servers.
2018-10-08 01:59:07 +03: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
yangfl
81a39c229b
Fix typo
2018-07-10 17:29:02 +08: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
heinrich5991
9454dfbff9
Remove superfluous parameter from CServer::NewClientNoAuthCallback
...
The `Reset` parameter was only ever set to true, at the only call site.
2018-05-09 23:50:25 +02:00
Dennis Felsing
5a53e4c54d
Fix compilation
2018-04-03 10:27:19 +02:00
heinrich5991
11304661db
Put name ban stuff into a separate file
...
Fix a bug when overlong names could be used to circumvent name bans. Add
tests for name bans.
2018-03-14 02:35:31 +01:00
Learath
b7610901e3
Handle empty reason. Fix formatting
2018-03-12 23:29:46 +01:00
Learath
c1a7c30f0f
Add reason to name bans
2018-03-12 19:05:49 +01:00
heinrich5991
31a3e8d4c0
Add possibility to ban players by name
...
This uses the Unicode confusable data together with judging how close
two strings are by using the Levenshtein distance.
Adds the commands `name_ban`, `name_unban` and `name_bans`. Kicks
players who join using a banned name and doesn't allow ingame players to
change their names to the banned ones.
2018-03-09 20:30:27 +01:00
heinrich5991
61c7e9307d
Don't log out on sv_rcon{,_mod,_helper}_password
if not changed
2018-02-26 18:01:02 +01:00
heinrich5991
1c3dc8c316
Record rcon authentication stuff into teehistorian
...
This allows to check moderator actions after-the-fact.
2018-01-28 03:13:05 +01:00
heinrich5991
1a236dbefc
Send connection information to external server
2017-12-20 16:56:34 +01:00
heinrich5991
94acac91a0
Overhauled job system
...
The engine now takes `std::shared_ptr<IJob>`, this will ensure the
appropriate lifetime of the given parameters, it also allows for proper
destruction. Remove the now obsolete `IFetcher` interface and `CFetcher`
class.
Also adds some locks to `CUpdater`, previously it didn't have any locks
at all.
2017-11-23 15:47:38 +01:00
heinrich5991
8e778cd9ab
Address pull request comments
2017-10-13 02:29:18 +02:00
heinrich5991
6ef9c8dbcd
First working version of teehistorian
...
teehistorian records all inputs from the players as well as the player
positions in each tick. It stores this info in a highly compressible
output format (I've achived 5x compression using xz or bz2).
2017-09-20 02:16:11 +02:00
def
89ed22e8d8
Introduce ddnet-info.json
...
- Single json file containing all information for the client
- Fetched from https://info.ddnet.tw/info?name=deen
- Replaces versionsrv, news, ddnet-maps.json and ddnet-ranks.json
- Servers are sorted by most popular ones for respective player
- Always stays < 100 ms response time, compared to occasional 50 s for
old ddnet-ranks.json
2017-09-03 17:42:04 +02:00
heinrich5991
1ebb4f89a6
Reopen: Add a flag for rcon login via username ( #800 )
...
This uses an extended protocol message to signal that rcon
authentication might require a username, allowing the client to enable
the username prompt.
Add a forgotten logout on key update
2017-07-24 21:43:55 +02:00
eeeee
0497cdd49d
stop casting auth state to bool
2017-06-08 13:03:44 -07:00
eeeee
9c5ade24da
remove ConDnsblStatus copypasta
2017-06-07 11:04:04 +02:00
eeeee
9b6699d3b8
remove casts to CServer
...
improving encapsulation by going through the interface instead of including engine/server/server.h
2017-06-05 20:51:12 -07:00
heinrich5991
5ae37e6c72
Add protocol extension with UUIDs
...
This system can easily be extended by independent authors without
collisions, something the old system with plain increasing integers did
not allow.
Do this by utilizing the previously unused message code `NETMSG_NULL`
which has a value of 0.
This works for engine and game messages, snapshot items and events.
2017-05-25 00:52:43 +02:00
def
f4112e3bcb
Revert "Tees must be teamed up before loading"
...
This reverts commit d29f2306ef
.
2017-05-14 22:36:44 +02:00
Learath
d29f2306ef
Tees must be teamed up before loading
2017-04-11 21:18:26 +02:00
heinrich5991
1d81d56850
Introduce new, vanilla-compatible server info protocol
...
This means that we have a reliable and fast way to query for extended info,
while also not wasting network bandwidth.
The protocol is designed to be extensible, there's four bytes space for
encoding more request types (currently zeroed), and there's one string in each
response packet and one string for each player available (currently the empty
string).
The protocol itself has no problems with more than 64 players, although the
current client implementation will drop the player info after the 64th player,
because it uses a static array for storage.
Also fixes #130 , the player list is just sorted each time new player info
arrives.
2017-03-29 12:56:13 +02:00
necropotame
b8e4e5beea
Fix style in several places
2017-03-22 19:45:14 +01:00
heinrich5991
c1e826e853
Fix key slot indices after removing a key
2017-03-06 18:02:19 +01:00
Learath2
95bb9894a7
Get rid of pw generation in CServer, Err out in CAuthManager instead
2017-03-04 23:16:02 +03:00
Learath2
b7cbaedea0
New auth system for rcon
2017-03-02 18:16:29 +03:00
heinrich5991
b510db9ee9
Add the VITAL flag to fastdownload packets
...
This lets 0.6.4 clients connect to DDNet servers again. Instead of doing
our own resend logic, just always send `sv_map_window` packets ahead and
let the Teeworlds network deal with possible resends.
2016-11-18 15:12:48 +01:00
east
c6efc85a80
dnsbl_status added
2016-09-05 14:05:07 +02:00
east
678a69bf5b
basic DNSBL implementation
2016-09-05 11:38:11 +02:00
H-M-H
e351080dd3
removed double semicolons
2016-05-04 00:24:54 +02:00
H-M-H
c9e65c7931
Merge branch 'master' into sqlmasters
2016-05-03 23:07:24 +02:00
def
21ac41bfae
Clean up fifo console
2016-05-02 23:36:21 +02:00
def
91df0a2af0
Remove hacky security against rcon spoofing because we have a better one now
2016-02-22 19:54:45 +01:00
H-M-H
1314085928
restructured sqlconnection
...
reading from and writing to several different servers is now possible
TODO:
-handle Exceptions properly (try another sqlserver)
-if everything fails while writing write the insert to a file
2016-02-20 15:33:35 +01:00
H-M-H
7199ae3f22
ConAddSqlMaster will not block the main thread anymore
2016-02-20 15:33:35 +01:00
H-M-H
15f2e07c48
moved sqlserver stuff into CServer-class
...
as sqlconnections should not last only
until next mapreload
2016-02-20 15:33:35 +01:00
heinrich5991
b29a733c4f
Add DoS protection to server info requests
...
Only allow 10 requests per second before falling back to smaller server
info responses.
2016-01-22 16:42:46 +01:00
Tim Schumacher
d99660f20e
Merge pull request #356 from H-M-H/helper_pw
...
Implemented Helper accesslevel
2015-10-27 02:18:00 +01:00
H-M-H
cd6c297cb0
removed some code duplication and updated autoexec_server.cfg
2015-10-27 00:46:28 +01:00
H-M-H
0e532adb67
Implemented Helper accesslevel
...
basically just copied everything from moderator-accesslevel implementation
note however that mod_command changed to access_level
2015-10-23 04:21:07 +02:00
timgame
7fafd2db2f
added sv_reload_when_empty
2015-10-22 17:27:30 +02:00
east
cf9e1373d7
correctly reset client
2015-08-23 17:51:28 +02:00
east
c47697bdef
session rejoin
2015-08-23 17:01:01 +02:00
east
d1382349f5
vanilla token handshake implemented
2015-08-14 18:30:49 +02:00
def
ce465b584c
Add sv_rescue_delay and rename sv_allow_rescue to sv_rescue
2015-06-30 18:46:36 +02:00
heinrich5991
71548fc0d6
If no rcon password is set, generate one
...
After the generation (using the OS random number generator), the password is
displayed to the user on stdout.
2015-06-21 19:56:35 +02:00
def
cea6fef24f
Hack to disallow admins to enable /r after server was started
2015-04-17 11:24:28 +02:00
def
0df35a990c
Remove spoof protection, interacts badly with HTTP download
2015-01-27 23:13:47 +01:00
def
023f926e89
Fix Compilation
2014-12-20 16:35:47 +01:00
def
4d4d8ad5e8
Fix compile warnings
2014-11-23 21:24:20 +01:00
def
b4f77c4b71
Add sv_player_demo_record (mostly from Teerace)
2014-09-26 02:05:31 +02:00
Tobias Urlaub
45823466ec
Fix: Rcon spoofing protection bans clients after password change
2014-09-16 21:14:31 +02:00
def
2cff296c25
Protect from IP spoofing of rcon commands
2014-08-22 13:54:13 +02:00
def
bf5fdadcd6
Add Spoof protection (by someone)
2014-08-13 02:00:45 +02:00
def
d8533eea67
Proper Client Version numbers and more visible whispers
2014-01-30 16:49:15 +01:00
def
3607218f12
Merge ddrace64 from eeeeee
2013-12-31 06:13:57 +01:00
def
3eaad43b6b
Merge remote-tracking branch 'upstream-teeworlds/0.6' into DDRace
...
Conflicts:
bam.lua
data/languages/index.txt
src/engine/server/server.cpp
src/engine/shared/network_server.cpp
src/game/client/components/chat.cpp
src/game/client/components/menus_settings.cpp
src/game/server/entities/character.cpp
src/game/server/gamecontext.cpp
src/game/version.h
2013-12-26 18:02:22 +01:00
def
60865b7dbf
More advanced netlimit
2013-08-04 17:50:12 +02:00
def
71ba923133
Move netlimit over to regular server
2013-08-04 04:24:03 +02:00
def
8720186c75
Revert "Revert "Restrict rcon output (east)""
...
This reverts commit 35cf8832a9
.
2013-07-31 01:31:53 +02:00
def
35cf8832a9
Revert "Restrict rcon output (east)"
...
This reverts commit ba5b98dd1d
.
2013-07-31 01:27:29 +02:00
def
ba5b98dd1d
Restrict rcon output (east)
2013-07-30 23:26:30 +02:00
def
1cee48f6c1
Can only set sv_test_cmds at start, then it stays, and determines whether gametype is DDRace (no cheats) or TestDDRace (cheats)
2013-07-23 00:15:50 +02:00
Magnus Auvinen
98042012a6
cleaned up warnings that clang spits out. some bugs found with it.
...
Conflicts:
src/game/server/gamemodes/ctf.cpp
src/game/server/gamemodes/ctf.h
2013-02-24 17:54:29 +01:00
Ravomavain
52ba9eea04
remove other banmaster related code
2012-05-02 01:18:11 +02:00
GreYFoX
cd4ba53bae
Merge branch 'master' of git://github.com/teeworlds/teeworlds into DDRace
...
Conflicts:
bam.lua
scripts/build.py
scripts/make_release.py
src/engine/server.h
src/game/client/gameclient.cpp
src/game/server/gamecontext.cpp
src/game/server/gamecontext.h
src/game/server/gamecontroller.cpp
src/game/server/gamecontroller.h
src/game/server/player.cpp
src/game/version.h
2012-04-12 02:09:31 +02:00
oy
4fde2cf7f2
add tuning to demo. Closes #899
2012-01-09 00:49:20 +01:00
GreYFoX
ee670118a5
Merge branch 'master' of git://github.com/oy/teeworlds into DDRace
...
Conflicts:
src/engine/console.h
src/engine/server/server.cpp
src/engine/server/server.h
src/engine/shared/config.h
src/engine/shared/console.cpp
src/engine/shared/console.h
src/engine/shared/network_server.cpp
@heinrich5991 todo
2012-01-01 00:11:56 +02:00
oy
c975390195
made vote ban check if the ip matches an authed player
2011-12-31 12:11:48 +01:00
Learath2
81e6cf6f83
Added logout command. Closes #903
2011-12-29 23:53:07 +01:00
oy
b44ee3d975
reworked ban system
2011-12-29 23:36:53 +01:00
GreYFoX
1446d0980b
Merge branch 'master' of git://github.com/oy/teeworlds into DDRace
...
* Version 1.098a
Conflicts:
bam.lua
src/game/client/gameclient.h
src/game/mapitems.h
2011-12-05 11:32:01 +02:00
oy
8e0ce38e29
fixed sv_max_client usage
2011-12-04 16:51:33 +01:00
Choupom
b2a825652d
added a command to unban all
2011-12-04 14:22:59 +01:00
GreYFoX
5b27758650
Removed level stuff
...
Removed client ID stuff
Removed console stuff
Resolved merge conflicts
Upgraded Banmaster
Cleaned up
2011-08-13 02:11:06 +02:00
GreYFoX
35d16bd58c
Merge branch 'master' of git://github.com/oy/teeworlds into DDRace0611
...
Conflicts:
src/engine/console.h
src/engine/server.h
src/engine/server/server.cpp
src/engine/shared/config_variables.h
src/engine/shared/console.cpp
src/engine/shared/console.h
src/engine/shared/network_server.cpp
src/game/client/components/console.cpp
src/game/client/components/console.h
src/game/client/components/menus_browser.cpp
src/game/client/gameclient.cpp
src/game/editor/editor.cpp
src/game/editor/editor.h
src/game/editor/io.cpp
src/game/editor/layer_tiles.cpp
src/game/editor/popups.cpp
src/game/gamecore.cpp
src/game/mapitems.h
src/game/server/entities/character.cpp
src/game/server/entities/laser.cpp
src/game/server/gamecontext.cpp
src/game/server/gamecontroller.cpp
src/game/server/gamecontroller.h
src/game/server/gamemodes/ctf.cpp
src/game/server/player.cpp
src/game/variables.h
2011-08-13 02:01:40 +02:00
Johannes Loher
e2664c1b00
Added server sided automatic demo recording
2011-07-30 18:23:59 +02:00
oy
a0a62bcd70
fixed econ feature and tcp
2011-07-30 13:40:01 +02:00
heinrich5991
2ba6fbd731
added econ functionality
2011-07-29 17:51:14 +02:00
oy
571dff6216
made rcon auto completion serverside. Closes #97
2011-07-14 22:07:21 +02:00
oy
1ae474689d
added moderator support for the remote console. #518
2011-07-05 21:54:10 +02:00
Romain Labolle
813f689957
Tune reset clean up ( fix #50 )
...
* Removing old unused DDRaceTunesReset() function.
* Adding ResetTuning() function to reset tunes.
* Adding ResetTuning() and some settings reset (sv_hit/sv_endless_drag/sv_old_laser) to CGameContext::OnInit() which is loaded on each map load.
GreYFoX:
Repositioned the new Functions
2011-06-01 16:43:20 +02:00
GreYFoX
cc63cf2553
Merge branch 'master' of git://github.com/oy/teeworlds
...
Conflicts:
src/engine/external/pnglite/pnglite.c
src/engine/external/pnglite/pnglite.h
src/engine/shared/config_variables.h
src/game/client/components/menus_browser.cpp
src/game/server/entities/character.cpp
src/game/server/entities/laser.cpp
src/game/server/gamecontext.cpp
src/game/server/player.cpp
src/game/version.h
2011-05-09 18:36:13 +02:00
Choupom
7f15b3ac57
fixed several stuffs
2011-05-03 19:25:11 +02:00
GreYFoX
0d61c87fa1
Added 0.6.0 banmaster by @heinrich5991 #31
2011-04-26 11:51:02 +02:00
GreYFoX
0df6d0541f
Merge branch 'master' of git://github.com/oy/teeworlds into HEAD
...
Conflicts:
bam.lua
src/engine/console.h
src/engine/server.h
src/engine/server/server.cpp
src/engine/shared/config.h
src/engine/shared/config_variables.h
src/engine/shared/console.cpp
src/engine/shared/console.h
src/game/client/components/binds.cpp
src/game/client/components/chat.h
src/game/client/components/console.cpp
src/game/client/components/console.h
src/game/client/components/controls.cpp
src/game/client/components/emoticon.h
src/game/client/components/maplayers.cpp
src/game/client/components/menus.h
src/game/client/components/scoreboard.h
src/game/client/components/spectator.h
src/game/client/components/voting.h
src/game/client/gameclient.cpp
src/game/client/gameclient.h
src/game/client/render.h
src/game/collision.cpp
src/game/editor/ed_layer_tiles.cpp
src/game/gamecore.cpp
src/game/gamecore.h
src/game/layers.cpp
src/game/layers.h
src/game/mapitems.h
src/game/server/entities/character.cpp
src/game/server/entities/laser.cpp
src/game/server/entities/laser.h
src/game/server/entities/pickup.cpp
src/game/server/entities/pickup.h
src/game/server/entities/projectile.cpp
src/game/server/gamecontext.cpp
src/game/server/gamecontroller.cpp
src/game/server/gamecontroller.h
src/game/server/gameworld.cpp
src/game/server/gameworld.h
src/game/server/player.cpp
src/game/variables.h
2011-04-14 01:27:49 +02:00
oy
06115dd49d
added "Whitespace and line Endings cleanup" by GreYFoX
2011-04-13 20:37:12 +02:00
GreYFoX
32a85dabe3
Fixed some merge mistakes, NOTE: This will be be buggy to say the least
2011-04-09 23:01:10 +02:00
GreYFoX
f7f6058a92
Merged Oy, Cleaned up, removed some useless features and code parts
...
Added Icon by landil
alot more...
2011-04-09 22:32:17 +02:00
oy
04a3b7be00
fixed problem with recorded demo files. Closes #570
2011-04-02 11:55:37 +02:00
oy
2a72c0b38b
added a mechanism to check for a valid standard map. Closes #132
2011-03-31 15:13:49 +02:00
oy
34a9ca20a7
added ipv6 support from the old lua branch
2011-03-28 20:11:28 +02:00
Sebastian Wojtowicz
500605cbee
Server utf8 Conversion
2011-03-22 21:04:27 +02:00