fix(pterodactyl): fixed error if base_url ends in /
All checks were successful
Actions / Lint Code (Ruff & Pylint) (pull_request) Successful in 19s
Actions / Build Documentation (MkDocs) (pull_request) Successful in 24s

This commit is contained in:
Seaswimmer 2024-03-01 15:44:26 -05:00
parent af29b950c2
commit 88c77b4aa5
Signed by: cswimr
GPG key ID: B8953EC01E5C4063

View file

@ -17,6 +17,7 @@ from pterodactyl.pterodactyl import Pterodactyl
async def establish_websocket_connection(coginstance: Pterodactyl) -> None: async def establish_websocket_connection(coginstance: Pterodactyl) -> None:
base_url = await config.base_url() base_url = await config.base_url()
base_url = base_url[:-1] if base_url.endswith('/') else base_url
logger.info("Establishing WebSocket connection") logger.info("Establishing WebSocket connection")