[welcome] remove "Local IP"

This commit is contained in:
Dmytro Meleshko 2019-10-27 21:08:19 +02:00
parent 5e1bd6fa82
commit e036df7c48

View file

@ -20,7 +20,8 @@ def get_system_info():
info_lines.append(line) info_lines.append(line)
username = getuser() username = getuser()
hostname, local_ip = _get_hostname() # hostname, local_ip = _get_hostname()
hostname = _get_hostname()
info_lines.append( info_lines.append(
bright_colored(username, Fore.BLUE) + "@" + bright_colored(hostname, Fore.RED) bright_colored(username, Fore.BLUE) + "@" + bright_colored(hostname, Fore.RED)
@ -44,7 +45,7 @@ def get_system_info():
info("Shell", _get_shell()) info("Shell", _get_shell())
info("IP address", local_ip) # info("IP address", local_ip)
info_lines.append("") info_lines.append("")
@ -63,8 +64,9 @@ def get_system_info():
def _get_hostname(): def _get_hostname():
hostname = socket.gethostname() hostname = socket.gethostname()
local_ip = socket.gethostbyname(hostname) # local_ip = socket.gethostbyname(hostname)
return hostname, local_ip # return hostname, local_ip
return hostname
def _get_uptime(): def _get_uptime():