Skip to content

Commit

Permalink
fix remaining xc.remote_ip refs
Browse files Browse the repository at this point in the history
  • Loading branch information
haliphax committed Feb 16, 2020
1 parent 0e7e7fc commit 5f94948
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions userland/scripts/top.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ async def main(xc):
xc.echo(xc.term.normal)
xc.echo('Connected: {}@{}\r\n'
.format(xc.term.bright_blue(xc.username),
xc.term.bright_blue(xc.remote_ip)))
xc.term.bright_blue(xc.ip)))

if xc.encoding == 'utf-8':
xc.echo('\x1b%G')
Expand All @@ -26,7 +26,7 @@ async def main(xc):
# proof that the singleton queue reference works
await (EventQueues.q['{}:{}'.format(*xc.proc.get_extra_info('peername'))]
.put(EventData('demo', None)))

while True:
ks = None

Expand Down
2 changes: 1 addition & 1 deletion xthulu/ssh.py
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ def terminal_loop():
pt.start()
xc.term = TerminalProxy(proc.stdin, xc.encoding, proxy_in, proxy_out)
username = xc.username
remote_ip = xc.remote_ip
remote_ip = xc.ip
top_names = (config['ssh']['userland']['top']
if 'userland' in config['ssh'] and
'top' in config['ssh']['userland'] else ('top',))
Expand Down

0 comments on commit 5f94948

Please sign in to comment.