mirror of https://github.com/jumpserver/jumpserver
[Bugfix] 修复vnc录像的bug
parent
332be54b46
commit
e5285f312b
|
@ -118,10 +118,11 @@ class SessionReplayViewSet(viewsets.ViewSet):
|
||||||
session_id = kwargs.get('pk')
|
session_id = kwargs.get('pk')
|
||||||
session = get_object_or_404(Session, id=session_id)
|
session = get_object_or_404(Session, id=session_id)
|
||||||
|
|
||||||
data = {
|
tp = 'json'
|
||||||
'type': 'guacamole' if session.protocol == 'rdp' else 'json',
|
if session.protocol in ('rdp', 'vnc'):
|
||||||
'src': '',
|
tp = 'guacamole'
|
||||||
}
|
|
||||||
|
data = {'type': tp, 'src': ''}
|
||||||
|
|
||||||
# 新版本和老版本的文件后缀不同
|
# 新版本和老版本的文件后缀不同
|
||||||
session_path = session.get_rel_replay_path() # 存在外部存储上的路径
|
session_path = session.get_rel_replay_path() # 存在外部存储上的路径
|
||||||
|
|
Loading…
Reference in New Issue