diff options
author | Nick Mathewson <nickm@torproject.org> | 2008-09-25 21:06:32 +0000 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2008-09-25 21:06:32 +0000 |
commit | 02c71a7eb4ddbe3841a7b804a99b7b509e05a9d9 (patch) | |
tree | b86dd38756044645f158c157a2b5279289198739 /src/or/routerlist.c | |
parent | e06f140f978cb95c3f4655f24ccdf1753a04d230 (diff) | |
download | tor-02c71a7eb4ddbe3841a7b804a99b7b509e05a9d9.tar.gz tor-02c71a7eb4ddbe3841a7b804a99b7b509e05a9d9.zip |
Widen the conditions under which we whine about not having a geoip file to include "a country code was configured in a node list."
svn:r16968
Diffstat (limited to 'src/or/routerlist.c')
-rw-r--r-- | src/or/routerlist.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/or/routerlist.c b/src/or/routerlist.c index 71f6fd1cc7..3a5c4d5998 100644 --- a/src/or/routerlist.c +++ b/src/or/routerlist.c @@ -4882,6 +4882,13 @@ routerset_is_list(const routerset_t *set) } /** DOCDOC */ +int +routerset_needs_geoip(const routerset_t *set) +{ + return set && smartlist_len(set->country_names); +} + +/** DOCDOC */ static int routerset_is_empty(const routerset_t *set) { |