Skip to content

Commit

Permalink
Merge pull request #34 from WeBankPartners/dev
Browse files Browse the repository at this point in the history
Release v1.0.1
  • Loading branch information
Roy Wu(伍健君) authored Nov 2, 2021
2 parents 25e255e + bbdbb9f commit c1220cb
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
8 changes: 5 additions & 3 deletions api/terminal/terminal/common/ssh.py
Original file line number Diff line number Diff line change
Expand Up @@ -109,12 +109,14 @@ def connect(self, host, username, password, port=22, jump_servers=None):
jump_addr = (jump_host, jump_port)
try:
self._connect(self._jump_client, jump_host, jump_username, jump_password, port=jump_port)
final_jump_server = jump_server
jump_transport = self._jump_client.get_transport()
jump_channel = jump_transport.open_channel("direct-tcpip", dest_addr, jump_addr)
# use first available jumpserver
break
except exceptions.PluginError as e:
fail_msgs.append(str(e))
continue
final_jump_server = jump_server
jump_transport = self._jump_client.get_transport()
jump_channel = jump_transport.open_channel("direct-tcpip", dest_addr, jump_addr)
if len(fail_msgs) > 0 and final_jump_server is None:
raise exceptions.PluginError(message=_("failed to establish connection with all jump_servers: %(reason)s") %
{'reason': '\n'.join(fail_msgs)})
Expand Down
2 changes: 1 addition & 1 deletion ui/src/pages/authorization/session-records.vue
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ export default {
localStorage.setItem('replayToken', getCookie('accessToken'))
let url = ''
const scripts = document.getElementsByTagName('script')
for (let i = 0; i++; i <= scripts.length) {
for (let i = 0; i < scripts.length; i++) {
if (scripts[i].src.endsWith('/xtem-player/xterm-player.min.js')) {
url = scripts[i].src
}
Expand Down

0 comments on commit c1220cb

Please sign in to comment.