Commit Graph

407 Commits

Author SHA1 Message Date
Rambo6Glaz
7ea395eec2 Improve QR2 kick order by sending it to all QR2-authenticated sessions 2025-04-03 03:05:31 +09:00
Rambo6Glaz
2e83f14d4e Add QR2 kick order to ensure the peer is disconnected from the game session 2025-04-03 01:16:33 +09:00
ppeb
434eed19ee
Merge remote-tracking branch 'upstream/main' 2025-03-29 20:40:21 -05:00
Palapeli
01ed435176
GPCM: Fix wrong public IP check
Some checks failed
Build CI / build (push) Has been cancelled
2025-03-23 17:04:10 -04:00
ppeb
6d99a18256
Incorrect pinfo timestamp 2025-03-23 04:48:13 -05:00
ppeb
044566de49
Rework APIs to use Go error 2025-03-23 00:41:10 -05:00
ppeb
a75361da3f
Fix incorrect ban query 2025-03-22 01:16:02 -05:00
ppeb
147ea95011
Add pinfo api 2025-03-21 23:52:07 -05:00
ppeb
1bb3db9286
Add json attributes to Motd and Clear 2025-03-21 23:51:33 -05:00
ppeb
043b41f89e
Send custom ban reason on login 2025-03-21 19:05:50 -05:00
ppeb
c740f07750
Bump translations, mark error_messages.go as vendored 2025-03-21 18:14:49 -05:00
ppeb
5820cce487
Ban by device id for nand players and csnum for all 2025-03-20 19:26:21 -05:00
ppeb
50138d6afc
Bump translations 2025-03-20 00:48:33 -05:00
ppeb
3670ab8525
Update example config 2025-03-20 00:05:56 -05:00
ppeb
08b6ef218e
Require a valid csnum to log in 2025-03-20 00:01:29 -05:00
ppeb
14419b35ed
Fix logging and bad version parsing of login hash 2025-03-20 00:01:05 -05:00
ppeb
aaf73ba784
API: Add list and removal API for hash 2025-03-18 23:33:36 -05:00
ppeb
406dfc296d
Fix incorrect indexing while populating hashes 2025-03-18 22:17:19 -05:00
ppeb
5d7ec0edbc
Fix incorrect hash length check 2025-03-14 20:00:36 -05:00
ppeb
54b8d7ab82
Define unsupported languages, bump translations 2025-03-10 20:31:04 -05:00
ppeb
6a40b5c9ec
Store blob hashes, require on login
Blob hashes are now stored in the database under the `hashes` table.
They are stored internally as a map of packIDs to a map of versions to a
map of regions to the hash.

On login, a pack ID, version, and hash are required or the login attempt
is rejected.

Hashes can be updated using the `/api/hash` endpoint.

The schema has been updated accordingly.
2025-03-10 08:39:19 -05:00
ppeb
406660115d
Sourcegen translations from Google Sheet 2025-03-08 20:49:41 -06:00
ppeb
2d6073c7e9
Merge remote-tracking branch 'upstream/main' 2025-03-08 10:45:33 -06:00
Palapeli
5f8ea98a3b
GPCM: Fix incorrect TOS ban message
Some checks failed
Build CI / build (push) Has been cancelled
2025-03-07 09:09:23 -05:00
Palapeli
c2ef0069ed
GPCM: Fix positional format strings in ban errors 2025-03-07 09:08:03 -05:00
ppeb
433ade0293
Merge remote-tracking branch 'upstream/main' 2025-03-06 22:18:08 -06:00
Palapeli
81475368bd
GPCM: Bump payload version to 5
Some checks are pending
Build CI / build (push) Waiting to run
2025-03-06 08:04:24 -05:00
Palapeli
0642e14672
GameStats: Return 1 from getpd/setpd in error 2025-03-06 08:03:51 -05:00
Palapeli
c0196a65bd
GPCM: Update report to use the "wl:" namespace 2025-03-06 05:20:32 -05:00
Palapeli
1212a4f64c
Reformat added record to use "wl:" namespace 2025-03-06 04:56:10 -05:00
ppeb
41f7fddc4d
Revert "Revert motd, clear, and user action response"
This reverts commit 3144bd7cf8.

The reason this commit had to be made was because certain apis were PR'd
upstream, but were unwanted and thus removed in a separate commit. It
would likely have been better to drop the commits pushed upstream but
it's too late to fix that, so now we have a revert of a revert.
2025-03-05 20:33:20 -06:00
ppeb
cbb064679d
Re-remove check for ng_device_id in SearchUserBan 2025-03-05 19:40:43 -06:00
ppeb
a7afa56acb
Add wwfc binary to gitignore 2025-03-05 19:27:00 -06:00
ppeb
ea26b1a849
Fix Japanese for WWFCMsgKickedGeneric 2025-03-05 19:26:51 -06:00
ppeb
0e2d1bcaad
Fix syntax, formatting, and newlines in error.go 2025-03-05 19:26:51 -06:00
Eppeu
53171ded94
Update error.go (JPN & FRA) 2025-03-05 19:26:51 -06:00
Matthew Toro
a127ecd3b7
Revert "Update error.go (JPN & FRA)" 2025-03-05 19:19:28 -06:00
Eppeu
35d470679b
Update error.go (JPN & FRA) 2025-03-05 19:19:28 -06:00
ZPL
ab2abc1980
Update error.go 2025-03-05 19:19:24 -06:00
ppeb
d3d5d359f2
Return ban check, but without ng_device_id 2025-03-05 19:17:39 -06:00
ZPL
7601f0f39c
Update error.go 2025-03-05 19:02:30 -06:00
ZPL
c7a261e721
Modified for use with for Retro Rewind 2025-03-05 19:02:29 -06:00
Palapeli
f1741b0718
ServerBrowser/Filter: Return result of group node
Some checks are pending
Build CI / build (push) Waiting to run
2025-03-05 11:24:27 -05:00
Palapeli
c01f080f2c
API: Handle OPTIONS request method 2025-03-05 06:26:06 -05:00
Palapeli
543f4ff017
Merge pull request #73 from WiiLink24/dependabot/go_modules/golang.org/x/net-0.33.0
Some checks are pending
Build CI / build (push) Waiting to run
Bump golang.org/x/net from 0.23.0 to 0.33.0
2025-03-04 10:10:02 -05:00
Palapeli
e5a6aedb34
Merge pull request #72 from Retro-Rewind-Team/api
Update APIs
2025-03-04 10:07:08 -05:00
ppeb
95360023a5
Move custom kick and ban error messages to error.go 2025-03-04 06:59:57 -06:00
dependabot[bot]
6dd9936421
Bump golang.org/x/net from 0.23.0 to 0.33.0
Bumps [golang.org/x/net](https://github.com/golang/net) from 0.23.0 to 0.33.0.
- [Commits](https://github.com/golang/net/compare/v0.23.0...v0.33.0)

---
updated-dependencies:
- dependency-name: golang.org/x/net
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-03-04 09:17:59 +00:00
Palapeli
658d789462
Merge pull request #69 from WiiLink24/dependabot/go_modules/golang.org/x/crypto-0.31.0
Some checks are pending
Build CI / build (push) Waiting to run
Bump golang.org/x/crypto from 0.21.0 to 0.31.0
2025-03-04 04:17:09 -05:00
Palapeli
34d13199b0
ServerBrowser: Support bitwise operators in filter 2025-03-04 04:00:24 -05:00