fix(pterodactyl): fixed error if base_url ends in /

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

View file

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