mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-13 06:33:44 +01:00
catch misconfigured machines that return hostname as fqdn
svn:r610
This commit is contained in:
parent
25b0c92f0f
commit
5c563939ef
@ -1130,6 +1130,10 @@ int router_rebuild_descriptor(void) {
|
|||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
address = localhostname;
|
address = localhostname;
|
||||||
|
if(!strchr(address,'.')) {
|
||||||
|
log_fn(LOG_WARN,"fqdn '%s' has only one element. Misconfigured machine?",address);
|
||||||
|
return -1;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
ri = tor_malloc(sizeof(routerinfo_t));
|
ri = tor_malloc(sizeof(routerinfo_t));
|
||||||
ri->address = tor_strdup(address);
|
ri->address = tor_strdup(address);
|
||||||
|
Loading…
Reference in New Issue
Block a user