mirror of
https://github.com/imayushsaini/Bombsquad-Ballistica-Modded-Server.git
synced 2025-11-07 17:36:15 +00:00
use game port number for TCP
This commit is contained in:
parent
4d046f4b0b
commit
b3d59c991c
1 changed files with 2 additions and 2 deletions
4
dist/ba_root/mods/plugins/bcs_plugin.py
vendored
4
dist/ba_root/mods/plugins/bcs_plugin.py
vendored
|
|
@ -8,7 +8,7 @@
|
||||||
from flask import Flask, request, jsonify
|
from flask import Flask, request, jsonify
|
||||||
from functools import wraps
|
from functools import wraps
|
||||||
import os
|
import os
|
||||||
|
import _ba
|
||||||
import _thread
|
import _thread
|
||||||
# import uvicorn
|
# import uvicorn
|
||||||
from . import bombsquad_service
|
from . import bombsquad_service
|
||||||
|
|
@ -250,7 +250,7 @@ def update_server_config():
|
||||||
|
|
||||||
|
|
||||||
def enable():
|
def enable():
|
||||||
flask_run = _thread.start_new_thread(app.run, ("0.0.0.0", 5000, False))
|
flask_run = _thread.start_new_thread(app.run, ("0.0.0.0", _ba.get_game_port(), False))
|
||||||
# uvicorn_thread = threading.Thread(target=start_uvicorn)
|
# uvicorn_thread = threading.Thread(target=start_uvicorn)
|
||||||
# uvicorn_thread.start()
|
# uvicorn_thread.start()
|
||||||
# options = {
|
# options = {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue