diff options
author | Neel Chauhan <neel@neelc.org> | 2019-07-19 12:56:02 -0400 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2019-08-26 18:21:56 -0400 |
commit | d9a7d4779887dbd2cba082c2a5daa535fe0d36ce (patch) | |
tree | 8bebf52e1ed19a166b450fcfe4ae6f353129e193 /src/feature/dirauth/process_descs.h | |
parent | 5303dbe6249ed4b1e268f7a5c41ed6a638c4d0e3 (diff) | |
download | tor-d9a7d4779887dbd2cba082c2a5daa535fe0d36ce.tar.gz tor-d9a7d4779887dbd2cba082c2a5daa535fe0d36ce.zip |
Check for private IPv6 addresses in dirserv_router_has_valid_address()
Diffstat (limited to 'src/feature/dirauth/process_descs.h')
-rw-r--r-- | src/feature/dirauth/process_descs.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/feature/dirauth/process_descs.h b/src/feature/dirauth/process_descs.h index 001c866eba..1d4085b091 100644 --- a/src/feature/dirauth/process_descs.h +++ b/src/feature/dirauth/process_descs.h @@ -36,4 +36,8 @@ void dirserv_set_node_flags_from_authoritative_status(node_t *node, int dirserv_would_reject_router(const routerstatus_t *rs); +#ifdef TOR_UNIT_TESTS +STATIC int dirserv_router_has_valid_address(routerinfo_t *ri); +#endif /* defined(TOR_UNIT_TESTS) */ + #endif /* !defined(TOR_RECV_UPLOADS_H) */ |