Loading ccnode/host/tags.py +2 −4 Original line number Diff line number Diff line Loading @@ -6,7 +6,7 @@ import re import os as os_ import platform as platform_ from multiprocessing import cpu_count from socket import gethostname, gethostbyaddr from socket import getfqdn import psutil Loading @@ -15,9 +15,7 @@ from ccnode.tags import Tag, DynamicTags def h(): """Hostname tag.""" hn = gethostname() return gethostbyaddr(hn)[0] or hn return getfqdn() h.ttl = 3600 * 24 # one day Loading Loading
ccnode/host/tags.py +2 −4 Original line number Diff line number Diff line Loading @@ -6,7 +6,7 @@ import re import os as os_ import platform as platform_ from multiprocessing import cpu_count from socket import gethostname, gethostbyaddr from socket import getfqdn import psutil Loading @@ -15,9 +15,7 @@ from ccnode.tags import Tag, DynamicTags def h(): """Hostname tag.""" hn = gethostname() return gethostbyaddr(hn)[0] or hn return getfqdn() h.ttl = 3600 * 24 # one day Loading