mirror of
https://github.com/barronwaffles/dwc_network_server_emulator.git
synced 2026-09-10 12:15:27 -05:00
Match the length of some things to the real server's.
This commit is contained in:
@@ -405,7 +405,9 @@ class GamespyDatabase(object):
|
||||
def generate_authtoken(self, userid, data):
|
||||
# Since the auth token passed back to the game will be random, we can make it small enough that there
|
||||
# should never be a crash due to the size of the token.
|
||||
size = 16
|
||||
# ^ real authtoken is 80 + 3 bytes though and I want to figure out what's causing the 52200
|
||||
# so I'm matching everything as closely as possible to the real thing
|
||||
size = 80
|
||||
authtoken = "NDS" + utils.generate_random_str(size)
|
||||
|
||||
q = "SELECT authtoken FROM nas_logins WHERE authtoken = ?"
|
||||
|
||||
@@ -97,7 +97,7 @@ class PlayerSession(LineReceiver):
|
||||
self.session = ""
|
||||
|
||||
# Generate a random challenge string
|
||||
self.challenge = utils.generate_random_str(8, "ABCDEFGHIJKLMNOPQRSTUVWXYZ")
|
||||
self.challenge = utils.generate_random_str(10, "ABCDEFGHIJKLMNOPQRSTUVWXYZ")
|
||||
|
||||
# The first command sent to the client is always a login challenge containing the server challenge key.
|
||||
msg_d = []
|
||||
|
||||
Reference in New Issue
Block a user