node_manager_fkie: added fix to handle the local names with domains
@@ -182,7 +182,14 @@ def is_local(hostname, wait=False):
if isinstance(HOSTS_CACHE[hostname], threading.Thread):
return False
return HOSTS_CACHE[hostname]
-
+ try:
+ # fix to handle the local names with domains
+ if hostname == get_hostname(socket.gethostname()):
+ with _LOCK:
+ HOSTS_CACHE[hostname] = result
+ return True
+ except:
+ pass
try:
socket.inet_aton(hostname)
local_addresses = ['localhost'] + roslib.network.get_local_addresses()
