Merge branch 'master' of github.com:ibuler/jumpserver

pull/31/head
ibuler 2015-12-24 11:31:31 +08:00
commit 9fc0c9da06
1 changed files with 1 additions and 1 deletions

View File

@ -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