fixed port configuration

This commit is contained in:
Ayush Saini 2024-02-18 14:55:33 +05:30 committed by GitHub
parent 152a80811f
commit 2a93775d77
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -704,7 +704,7 @@ class ServerManagerApp:
# Some of our config values translate directly into the
# ballisticacore config file; the rest we pass at runtime.
port = int(os.environ.get('PORT', 43210))
port = int(os.environ.get('PORT', self._config.port))
bincfg['Port'] = port
bincfg['Auto Balance Teams'] = self._config.auto_balance_teams
bincfg['Show Tutorial'] = self._config.show_tutorial