diff --git a/apps/terminal/api/v1/session.py b/apps/terminal/api/v1/session.py index 5788df775..f463b41f8 100644 --- a/apps/terminal/api/v1/session.py +++ b/apps/terminal/api/v1/session.py @@ -119,7 +119,7 @@ class SessionReplayViewSet(viewsets.ViewSet): session = get_object_or_404(Session, id=session_id) data = { - 'type': 'guacamole' if self.session.protocol == 'rdp' else 'json', + 'type': 'guacamole' if session.protocol == 'rdp' else 'json', 'src': '', }