RDP远程时,如果客户端时MSTSC,则录像无法播放,在解决此问题前,先屏蔽掉对MSTSC的支持(助手不可选择MSTSC)。

pull/105/head
Apex Liu 2018-03-05 00:32:45 +08:00
parent 0d24b1834b
commit 54bd8332f9
3 changed files with 4 additions and 10 deletions

View File

@ -70,12 +70,6 @@
}, },
"rdp" : { "rdp" : {
"available" : [ "available" : [
{
"app" : "mstsc.exe",
"cmdline" : "\"{tmp_rdp_file}\"",
"display" : "微软RDP客户端系统自带",
"name" : "mstsc"
},
{ {
"app" : "{assist_tools_path}\\tprdp\\tprdp-client.exe", "app" : "{assist_tools_path}\\tprdp\\tprdp-client.exe",
"cmdline" : "{size} {console} /v:{host_ip}:{host_port} /u:{user_name} /p:**** {clipboard} {drives} /t:\"TP#{real_ip}\"", "cmdline" : "{size} {console} /v:{host_ip}:{host_port} /u:{user_name} /p:**** {clipboard} {drives} /t:\"TP#{real_ip}\"",
@ -83,6 +77,6 @@
"name" : "freerdp" "name" : "freerdp"
} }
], ],
"selected" : "mstsc" "selected" : "freerdp"
} }
} }

View File

@ -650,7 +650,7 @@ class DoGetFileHandler(TPBaseHandler):
@tornado.gen.coroutine @tornado.gen.coroutine
def get(self): def get(self):
log.v('--{}\n'.format(self.request.uri)) # log.v('--{}\n'.format(self.request.uri))
require_privilege = TP_PRIVILEGE_OPS | TP_PRIVILEGE_OPS_AUZ | TP_PRIVILEGE_AUDIT_AUZ | TP_PRIVILEGE_AUDIT require_privilege = TP_PRIVILEGE_OPS | TP_PRIVILEGE_OPS_AUZ | TP_PRIVILEGE_AUDIT_AUZ | TP_PRIVILEGE_AUDIT
@ -698,7 +698,7 @@ class DoGetFileHandler(TPBaseHandler):
file_size = os.path.getsize(file) file_size = os.path.getsize(file)
if act == 'size': if act == 'size':
log.d('--return size:{}\n'.format(file_size)) # log.d('--return size:{}\n'.format(file_size))
return self.write('{}'.format(file_size)) return self.write('{}'.format(file_size))
if offset >= file_size: if offset >= file_size:

View File

@ -41,7 +41,7 @@ class RpcHandler(TPBaseJsonHandler):
except: except:
return self.write_json(TPE_JSON_FORMAT) return self.write_json(TPE_JSON_FORMAT)
log.d('WEB-JSON-RPC, method=`{}`\n'.format(_req['method'])) # log.d('WEB-JSON-RPC, method=`{}`\n'.format(_req['method']))
if 'get_conn_info' == _req['method']: if 'get_conn_info' == _req['method']:
return self._get_conn_info(_req['param']) return self._get_conn_info(_req['param'])