163 Commits

Author SHA1 Message Date
SaltySnail
9d67838f8f fix #225 2024-09-15 20:26:20 +02:00
Lion
ce5f2e666d
Download Refactoring (#356)
Limits download RAM usage (to zero) on Linux by use of `sendfile(2)`
2024-08-31 20:32:23 +02:00
SaltySnail
f5f6b8534d
Add IPv6 support (#349)
Adds IPv6 support.

FreeBSD users beware: From this point forward, you will have to set
`sysctl net.inet6.ip6.v6only=0` so that the BeamMP-Server continues to
work. The server also prints this information.
2024-08-20 20:35:48 +02:00
Lion Kortlepel
e1aaaf5e63
Merge branch 'fix-little-issues' into minor 2024-07-28 10:52:33 +02:00
Lion Kortlepel
49ed82bea1 add more info to debug print for freebsd ipv6 support 2024-07-16 17:30:45 +02:00
Lion Kortlepel
0d848fda7c add warning about IPV6_V6ONLY=false not working on FreeBSD 2024-07-16 17:25:29 +02:00
Lion Kortlepel
82a6d4af60
repeat sendfile() until all data is sent 2024-07-14 17:01:24 +02:00
Lion Kortlepel
8b753ab6ea
ignore SIGPIPE in sendfile() implementation of mod sending 2024-07-14 17:01:08 +02:00
Lion Kortlepel
b097acfd4a
use sendfile64 2024-07-14 16:17:39 +02:00
Lion Kortlepel
bd76e28ca6
use sendfile to send mods on linux 2024-07-14 15:33:26 +02:00
Lion Kortlepel
eaedeb5324
add IPv6 support 2024-07-12 15:45:50 +02:00
Lucca Jiménez Könings
29f4d0d286 run clang-format 2024-06-26 14:06:06 +02:00
Lucca Jiménez Könings
2451e08b01 update remaining sections of code after merge 2024-06-26 12:31:47 +02:00
Lucca Jiménez Könings
25739cb1bd Merge branch 'minor' into 158-bug-running-settings-help-returns-nothing 2024-06-26 11:43:38 +02:00
Lion Kortlepel
07a8d49046
fix tcp send also 2024-06-22 23:56:18 +02:00
Lion Kortlepel
bfb0675efa
send large packets over tcp 2024-06-22 23:51:01 +02:00
SaltySnail
e94cfd641d remove debug print 2024-06-10 23:16:45 +02:00
SaltySnail
91bc7dea79
Update src/TNetwork.cpp
Co-authored-by: Lion <development@kortlepel.com>
2024-06-10 23:12:23 +02:00
SaltySnail
5dab48af92 fix #247, add allow guests config setting. 2024-06-10 22:06:09 +02:00
sla-ppy
566f0b55f7 remove debug info 2024-05-28 14:53:19 +02:00
sla-ppy
58a7e39419 add more info to return to pkToUser endpoint 2024-05-28 14:15:41 +02:00
Lucca Jiménez Könings
8c15b87628
Refactor all references to settings to use new Settings type
Signed-off-by: Lucca Jiménez Könings <development@jimkoen.com>
2024-05-15 12:52:09 +02:00
Lucca Jiménez Könings
13e641b3a3
Remove interfering legacy code (http,password,etc)
Signed-off-by: Lucca Jiménez Könings <development@jimkoen.com>
2024-05-15 12:45:19 +02:00
sla-ppy
e852245bae add mutex to openid 2024-02-08 23:29:10 +01:00
Lion Kortlepel
aff537afdf add AGPL-3.0 license header 2024-01-23 21:00:11 +01:00
Lion Kortlepel
4228e18c90 reset default ID to 0 2024-01-09 15:34:33 +01:00
Lion Kortlepel
a4eb10b6a4 fix MP.GetPositionRaw 2024-01-09 15:34:33 +01:00
Lion Kortlepel
0166e488d0 fix calling GlobalParser as static 2024-01-09 15:34:33 +01:00
Lion Kortlepel
11fe5ad200
fix invalid timeout value 2023-12-05 18:00:34 +01:00
Lion Kortlepel
667da22b0e
Merge remote-tracking branch 'origin/master' into new-buildsystem 2023-12-05 17:59:05 +01:00
Lion Kortlepel
22805af716
fix crash in authentication 2023-12-03 17:43:41 +01:00
Anonymous275
d677d8d58d rename Hash function to HashPassword
move HashPassword to cpp only
move check to line 285
2023-01-15 17:12:35 +00:00
Anonymous275
4b30918659 - add 120 seconds timeout 2023-01-15 17:12:35 +00:00
Anonymous275
688e46f524 - fix linux build 2023-01-15 17:12:35 +00:00
Anonymous275
9f59c27b1f - add hash function
- add password config
- add debug messages for password stages
- add pass boolean for heartbeat
- adjust network codes
2023-01-15 17:12:35 +00:00
Lion Kortlepel
b024533f90
fix crash when the header of a TCP packet is negative 2022-10-31 11:31:15 +01:00
Lion Kortlepel
f9251ff92c
add more warning prints on unexpected cases 2022-10-31 11:31:15 +01:00
Lion Kortlepel
99f41c28cb
fix #135 by making onPlayerDisconnect blocking, and calling it before removing the player
before, the handlers were not waited for, so the client was usually
destructed before lua got to the actual event handler call. Now, the
handler is called and waited on, and once all handlers are done, the
client is properly removed from the players internally, thus making
calls to GetPlayerName, GetPlayerIdentifiers, etc. return nil etc.
2022-10-31 11:31:15 +01:00
Lion Kortlepel
917c501faf
fix typo causing beammp forum id not to show in identifiers (fix #137) 2022-10-22 21:16:31 +02:00
Lion Kortlepel
92632b53b5
fix binary data breaking in UDPRcvFromClient 2022-10-15 23:30:09 +02:00
Lion Kortlepel
87965433c2
change log levels of common warnings and errors to debug
this hides a lot of the "standard" errors we get behind the debug flag.
for example, disconnecting a disconnected player would be such an error
2022-10-15 23:16:16 +02:00
Lion Kortlepel
94c0547a35
fix crash when the client disconnects while sending first identify setting 2022-10-15 23:16:16 +02:00
Lion Kortlepel
064e71e59f
fix client version check 2022-10-15 23:16:16 +02:00
Lion Kortlepel
4320a91e5c
use message() instead of what() for ec 2022-10-15 23:16:16 +02:00
Lion Kortlepel
67d02d4cf2
remove unused error check 2022-10-15 23:16:16 +02:00
Lion Kortlepel
88f5db514f
remove unused headers 2022-10-06 00:46:35 +02:00
Lion Kortlepel
e595192829
rename header to boost errc 2022-10-06 00:43:17 +02:00
Lion Kortlepel
917e3f98ab
fix github actions dependencies for linux to use proper boost version 2022-10-06 00:36:57 +02:00
Lion Kortlepel
c42a523532
remove SO_SNDTIMEO for now 2022-10-06 00:24:13 +02:00
Lion Kortlepel
231b13a0e7
fix a ghost client bug 2022-10-05 18:17:18 +02:00