Tixx
e880da5cf9
Up curl connection timeout to 2 minutes
2024-12-25 00:54:19 +01:00
Tixx
46e6fda26e
Update license header
2024-12-07 11:26:09 +01:00
Tixx
d58ff960ec
Fix github regex
2024-11-07 21:39:18 +01:00
Tixx
bd4c9c34a9
Add BeamMP github to the list of allowed links
2024-11-02 22:33:26 +01:00
Tixx
8519e279a7
Add beammp.gg to the list of allowed links
2024-11-02 22:18:46 +01:00
Tixx
6b6e304cfd
Switch to std::async
2024-10-18 19:23:53 +02:00
Tixx
06cb366bb5
Add mutex to CoreSend
2024-10-16 23:12:02 +02:00
Tixx
0b35f0484f
put blocking http requests on another thread
2024-10-16 23:12:02 +02:00
Tixx
ca9dd1ae75
Switch to only timeout on connection
2024-10-14 20:29:19 +02:00
Lion
9ebd218856
Fix empty modlist ( #136 )
...
This PR fixes the launcher getting confused when the server sends an
empty mod list using the new downloading system.
Related server PR: https://github.com/BeamMP/BeamMP-Server/pull/377
2024-10-12 22:10:47 +02:00
Tixx
d9874ce70e
Make return from parsemodinfo look better
2024-10-12 21:12:12 +02:00
Tixx
3f12bb757a
Mod info logs and check for old format
2024-10-10 21:35:27 +02:00
Lion Kortlepel
7d52e44434
only listen on localhost ipv4
2024-10-10 16:14:16 +02:00
Tixx
4fbd25b551
Handle new modlist being empty but still valid
2024-10-09 19:41:38 +02:00
Tixx
3cf1a2e51b
Add mod info debug log
2024-10-09 19:39:27 +02:00
Lion Kortlepel
49874fd633
Revert "remove 'D' socket initialization code"
...
This reverts commit 6a23518eff .
2024-10-09 18:00:43 +02:00
Lion Kortlepel
6a23518eff
remove 'D' socket initialization code
2024-10-09 17:36:54 +02:00
Lion Kortlepel
3297b3e62e
fix not recognizing empty mod lists on new mod list
2024-10-09 17:35:50 +02:00
Lion Kortlepel
7b59cb6f87
fix various commandline argument related things
2024-10-07 00:33:43 +02:00
Lion
259b21502e
Add command-line options ( #90 )
...
This PR adds command-line options as outlined in #74
Closes #74
2024-10-06 23:49:47 +02:00
snepsnepsnep
ace96b7e33
follow HTTP redirects
2024-10-05 23:45:50 +02:00
Tixx
2ddb576e72
Log core port
2024-10-05 17:20:40 +02:00
Tixx
aca61886d0
add command-line options
2024-10-05 17:20:40 +02:00
Lion
768f11f6ec
Add mod hashing, improve download protocol ( #129 )
2024-10-04 23:36:57 +02:00
Lion Kortlepel
85908e42d5
fix download code, error checking
2024-10-04 23:12:23 +02:00
Lion Kortlepel
5c77e60f29
remove mis-merged code
2024-10-04 23:04:30 +02:00
Lion Kortlepel
c74455e0fe
switch to curl for Get and Post
2024-10-04 22:59:29 +02:00
Lion
dc13e4a03c
remove extra return
2024-10-04 14:13:04 +02:00
Lion Kortlepel
1676d4174e
make mods not keep the hash when copying them
2024-09-29 02:36:41 +02:00
Lion Kortlepel
ad468a8971
remove debug prints
2024-09-29 02:04:39 +02:00
Lion Kortlepel
d3805f2cfd
fix mod deleting misnamed mods
2024-09-29 01:57:15 +02:00
Lion Kortlepel
9f1cc15b15
fix bugs with new download
2024-09-29 01:15:57 +02:00
Lion Kortlepel
c0fb4e4ad6
implement support for new mod hashing and download
2024-09-29 00:33:15 +02:00
Mackenzie
ede6fcd7dd
log SSL errors
2024-09-27 20:33:14 +01:00
Mackenzie
eaeacbd8de
log non-200 status codes
2024-09-27 20:23:28 +01:00
Lion Kortlepel
cbb5502a40
send download speed to game UI, bump version to 2.1.4
2024-09-24 21:50:09 +02:00
Lion Kortlepel
d6dfe85f69
add download speed to ingame ui
2024-09-24 21:10:10 +02:00
Lion
0c3ae43910
Add CachingDirectory config setting to cache mods elsewhere ( #121 )
...
also moved cls/clear to the beginning, idk wtf it was doing in there.
2024-09-23 22:45:21 +02:00
Lion Kortlepel
19d1245379
catch errors when the custom caching directory is not accessible
...
🧯
2024-09-23 22:39:44 +02:00
Lion Kortlepel
1362471657
add CachingDirectory config setting to cache mods elsewhere
...
also moved cls/clear to the beginning, idk wtf it was doing in there.
2024-09-23 22:31:58 +02:00
Lion Kortlepel
02465c529d
add more logging to exit
2024-09-23 22:08:45 +02:00
Lion Kortlepel
cd17df5cc2
add more debug statements, wait for threads before shutting down
2024-09-22 21:37:52 +02:00
Lion Kortlepel
0b589a74c9
refactor tcp receive to be less weird
2024-09-22 20:31:25 +02:00
Lion Kortlepel
1260515a40
fix crash when cancelling download
2024-09-22 20:20:31 +02:00
Lion
007cd6573e
Refactor downloading ( #116 )
...
The way it was done was so horrid, it was not only impossible to debug,
with TODO comments saying it sucks, and other shit like that, but it was
also just full of data races. You can rest easy however - I left most of
the data races in there <3 For nostalgia (totally not because it's a
massive pain to fix that).
We now do single-threaded download, which can not only saturate my 100
Mbit/s line without any hickups, it can also go up to ~600000 Mbit/s for
localhost transfers :) So I think it's fine.
2024-09-22 20:04:45 +02:00
Lion
7b022f9907
Add --skip-ssl-verify cli option ( #117 )
...
This is a temporary fix for if anyone has issues with SSL certificate
validation. The use of this must come with the disclaimer that,
obviously, this bypasses the security that SSL gives entirely. Anyone
could MITM you at that point. Don't use, basically.
2024-09-22 19:56:43 +02:00
Lion Kortlepel
96c9c89238
add extra layer of checks for data races in download
...
yeah
2024-09-22 19:52:52 +02:00
Lion Kortlepel
18e1b7a2bb
add --skip-ssl-verify cli option
2024-09-22 19:42:00 +02:00
Lion Kortlepel
191fbf083d
fix stupid microsoft macro <3
2024-09-22 19:06:46 +02:00
Lion Kortlepel
8c4342853a
refactor downloading
...
The way it was done was so horrid, it was not only impossible to debug,
with TODO comments saying it sucks, and other shit like that, but it was
also just full of data races. You can rest easy however - I left most of
the data races in there <3 For nostalgia (totally not because it's a
massive pain to fix that).
We now do single-threaded download, which can not only saturate my 100
Mbit/s line without any hickups, it can also go up to ~600000 Mbit/s for
localhost transfers :) So I think it's fine.
2024-09-22 18:52:50 +02:00