Skip to content

Commit

Permalink
Tunneling network congestion and port print fix.
Browse files Browse the repository at this point in the history
  • Loading branch information
miroberts committed Jan 5, 2024
1 parent 085ecc1 commit b388092
Show file tree
Hide file tree
Showing 3 changed files with 145 additions and 90 deletions.
4 changes: 2 additions & 2 deletions keepercommander/commands/discoveryrotation.py
Original file line number Diff line number Diff line change
Expand Up @@ -2028,7 +2028,7 @@ def print_fail():
host = host + ":" if host else ''
# Total length of the dynamic parts (endpoint name, host, and port)
dynamic_length = \
(len("| Endpoint : Listening on port: ") + len(convo_id) + len(host) + len(str(port)))
(len("| Endpoint : Listening on port: ") + len(convo_id) + len(host) + len(str(entrance.port)))

# Dashed line adjusted to the length of the middle line
dashed_line = '+' + '-' * dynamic_length + '+'
Expand All @@ -2038,7 +2038,7 @@ def print_fail():
print(
f'{bcolors.OKGREEN}| Endpoint {bcolors.ENDC}{bcolors.OKBLUE}{convo_id}{bcolors.ENDC}'
f'{bcolors.OKGREEN}: Listening on port: {bcolors.ENDC}'
f'{bcolors.BOLD}{bcolors.OKBLUE}{host}{port}{bcolors.ENDC}{bcolors.OKGREEN} |{bcolors.ENDC}')
f'{bcolors.BOLD}{bcolors.OKBLUE}{host}{entrance.port}{bcolors.ENDC}{bcolors.OKGREEN} |{bcolors.ENDC}')
print(f'{bcolors.OKGREEN}{dashed_line}{bcolors.ENDC}')
print(
f'{bcolors.OKGREEN}View all open tunnels : {bcolors.ENDC}{bcolors.OKBLUE}pam tunnel list{bcolors.ENDC}')
Expand Down
Loading

0 comments on commit b388092

Please sign in to comment.