fix: 默认WEB端口为80时,重放RDP录像会失败。

pull/32/head
Apex Liu 2017-06-26 01:27:38 +08:00
parent 33ff1b9b60
commit 2b115fa2b5
1 changed files with 1 additions and 1 deletions

View File

@ -178,7 +178,7 @@ ywl.on_host_table_created = function (tbl) {
if (protocol === PROTOCOL_TYPE_RDP) {
$(cell_obj).find('[ywl-btn-record]').click(function () {
var ip = window.location.hostname;
var port = parseInt(window.location.port);
var port = (window.location.port === "") ? 80 : parseInt(window.location.port);
var url = 'http://' + ip + ':' + port + '/log/replay/rdp/' + row_data.id;
var tail = 'log/replay/rdp/' + prefixInteger(row_data.id, 6);
var args = {};