Commit Graph

303 Commits

Author SHA1 Message Date
polaris
2dfa953637 Modify the keep alive for QR 2014-08-03 22:53:25 -04:00
polaris
720945c212 Use get_ip to get consistent IP address from data
This is to ensure that all functions that get an IP are getting the same
kind of data (that is, an integer with the bounds of a signed 32 bit
integer) for consistency purposes.
2014-08-03 22:45:24 -04:00
polaris
df31b2345a Refactored backend server a little 2014-08-03 22:40:31 -04:00
polaris
452ce0ddbd Check if the account is enabled at login
Not used yet, but possibly will be in the future.
2014-08-03 22:40:04 -04:00
polaris
9e2c77ddff More bugfixes. Server browser server should work 2014-07-29 12:48:36 -04:00
polaris
39c389306d Unpack signed to unsigned 2014-07-29 10:17:15 -04:00
polaris
7162bf2aa9 Loop as long as there is enough data for a packet 2014-07-29 10:15:52 -04:00
polaris
d6ae76e7e8 More overloads for util functions 2014-07-29 10:02:41 -04:00
polaris
0e8fc9e322 Use str instead of bytearray
Fixes change I made in 97277fb
2014-07-29 10:01:17 -04:00
polaris
a4d49a5ede Fix bug in NAS server from 1fbec2f 2014-07-29 09:55:05 -04:00
polaris
57fe3657c1 Rewrite packet handling for server browser 2014-07-29 09:46:52 -04:00
polaris
97277fb9b0 Add optional overload to the get_short and get_int functions 2014-07-29 09:46:28 -04:00
polaris
07de306dbd Fix missing comma from change in 1fbec2f 2014-07-29 09:31:19 -04:00
polaris-
adc994196d Merge pull request #55 from msoucy/ref/python/endian
Endianness
2014-07-28 16:39:53 -04:00
polaris-
277c93a7a8 Merge pull request #54 from msoucy/ref/python/dicts
Some dictionary-related cleanup
2014-07-28 16:39:46 -04:00
Matt Soucy
ee6193cdd8 Remove deprecated get_*_be functions 2014-07-27 16:37:03 -04:00
Matt Soucy
610cc2380c Use one common set of get functions 2014-07-27 16:36:19 -04:00
Matt Soucy
6da8ea929f Use "normal" utils.get functions instead of _be variants 2014-07-27 16:28:43 -04:00
Matt Soucy
05cd86adc3 Use only one big-endian function 2014-07-27 16:15:32 -04:00
Matt Soucy
23326f62d4 pep8 changes 2014-07-27 15:54:17 -04:00
Matt Soucy
b1511f9533 Use the struct module instead of roll-your-own 2014-07-27 15:46:59 -04:00
Matt Soucy
1fbec2fd37 Some dictionary-related cleanup 2014-07-27 15:11:55 -04:00
polaris-
61cf8c941a Merge pull request #53 from sepalani/patch-1
Update gs_utility.py, broken b64decode
2014-07-25 06:59:07 -04:00
sepalani
1378efad94 Update gs_utility.py, broken b64decode
Afaik, this conversion should be done like that.
2014-07-25 07:28:40 +04:00
polaris
77c315be7d Fix edge case in backend server query parser
(game_match_type = '0817') where game_match_type was interpreted as an
integer resulting in a false int == string comparison.
2014-07-24 21:25:42 -04:00
polaris
fbbae8b192 Try to make natneg smoother 2014-07-23 02:43:06 -04:00
polaris
11b8a406d5 Change password check
Who cares about security for their login data anyway?
2014-07-22 23:47:26 -04:00
polaris
827f8d83a0 Fixed invalid filter error
If the first server in the server list does not have all of the
requested fields, it would assume that all of the servers lacked the
requested fields, so it would bail. This will let it keep checking
against ever server and skip the ones without the requested fields.
2014-07-22 23:00:10 -04:00
polaris
68d1c39607 Licensing part 2 2014-07-04 20:16:00 -04:00
polaris
2fdd7a5783 Now includes licensing (AGPL v3) 2014-07-04 19:40:43 -04:00
Admiral H. Curtiss
a4ab6dabc1 Make date-based download specifying more logical to the user by making Jan 1st the first item on the file list. 2014-07-03 19:09:00 +02:00
Admiral H. Curtiss
2f29689285 On games with random downloads, allow user to control them via local date. 2014-07-02 22:16:47 +02:00
polaris
c6b193ca82 Fix exception in natneg 2014-07-01 01:19:23 -04:00
polaris
40e7ea8416 Remove unneeded log command 2014-06-29 22:53:04 -04:00
polaris
b799eccc32 Remove database initialization 2014-06-29 22:36:50 -04:00
polaris
0e1253934e Updated master server file 2014-06-29 22:36:26 -04:00
polaris
35e8cd2135 Generic gamestats http server 2014-06-29 22:33:33 -04:00
Admiral H. Curtiss
876689c259 Avoid calling initialize_db() on every database connection, to hopefully improve preformance and log spam. 2014-06-17 20:52:30 +02:00
Admiral H. Curtiss
97e1c01a5c Profile Server: Return Error on invalid authtoken. 2014-06-17 20:11:57 +02:00
Admiral H. Curtiss
9882da3af3 Combine user login in profile and gamestats. 2014-06-17 19:45:19 +02:00
Admiral H. Curtiss
8e535e005b Actually return an error when authp fails. 2014-06-15 20:03:23 +02:00
Admiral H. Curtiss
982c70eba7 Better handling of getpd when no profile is found, maybe?
Honestly I'm not sure about this one but it's better than logging three
errors and throwing an exception.
2014-06-15 07:01:14 +02:00
Admiral H. Curtiss
68b6871754 logger != log, can't use the same syntax here... 2014-06-15 06:46:52 +02:00
Admiral H. Curtiss
72a5f99b1d Should fix #40 and similar errors with extra backslashes. 2014-06-15 06:46:50 +02:00
Admiral H. Curtiss
2600a98f06 Fixes #39 2014-06-14 16:44:28 +02:00
polaris
45060abc19 Return all keys if none specified (2)
Didn't test before. This works now though.
2014-06-09 11:15:17 -04:00
polaris
ac4d659e75 Return all keys if none specified 2014-06-09 09:10:00 -04:00
polaris
173998c88b Fix problem with parsing data in gamestats 2014-06-08 12:57:53 -04:00
polaris
ed3220e500 Force encoding on data 2014-06-08 10:00:03 -04:00
polaris
c22dd4e137 Tried to fix report, added preinit to natneg 2014-06-07 07:08:18 -04:00