aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/or/routers.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/or/routers.c b/src/or/routers.c
index 292e045b7..121d66bb3 100644
--- a/src/or/routers.c
+++ b/src/or/routers.c
@@ -1130,6 +1130,10 @@ int router_rebuild_descriptor(void) {
return -1;
}
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->address = tor_strdup(address);