|
|
@ -80,6 +80,7 @@ def create_game(): |
|
|
|
if 'X-Forwarded-For' in request.headers: |
|
|
|
remote_addr = request.headers.getlist( |
|
|
|
"X-Forwarded-For")[0].rpartition(' ')[-1] |
|
|
|
|
|
|
|
cur.execute("INSERT INTO games (name,secret,ip,port,bots,player_count,running) VALUES (?,?,?,?,?,0,0)", |
|
|
|
(name, secret, remote_addr, port, bots)) |
|
|
|
con.commit() |
|
|
|