mirror of https://github.com/jumpserver/jumpserver
commit
aa1dea1b08
|
@ -32,7 +32,7 @@ from jperm.ansible_api import MyRunner
|
|||
from jlog.models import ExecLog, FileLog
|
||||
|
||||
login_user = get_object(User, username=getpass.getuser())
|
||||
remote_ip = os.popen("who -m | awk '{ print $5 }'").read().strip('()\n')
|
||||
remote_ip = os.popen("who -m | awk '{ print $NF }'").read().strip('()\n')
|
||||
|
||||
try:
|
||||
import termios
|
||||
|
|
Loading…
Reference in New Issue