diff options
author | Nick Mathewson <nickm@torproject.org> | 2011-11-08 16:10:38 -0500 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2011-11-30 11:55:44 -0500 |
commit | 5f0a8dcd2cfcbafc3deb3a6717808b607a459dac (patch) | |
tree | cab98ff453a2116811274dd2118e61290aadd514 /src/or/directory.c | |
parent | 628b735fe39e13cc37afb567b32d4b006da51c89 (diff) | |
download | tor-5f0a8dcd2cfcbafc3deb3a6717808b607a459dac.tar tor-5f0a8dcd2cfcbafc3deb3a6717808b607a459dac.tar.gz |
Initial hacking for proposal 186.
This code handles the new ORPort options, and incidentally makes all
remaining port types use the new port configuration systems.
There are some rough edges! It doesn't do well in the case where your
Address says one thing but you say to Advertise another ORPort. It
doesn't handle AllAddrs. It doesn't actually advertise anything besides
the first listed advertised IPv4 ORPort and DirPort. It doesn't do
port forwarding to them either.
It's not tested either, it needs more documentation, and it probably
forgets to put the milk back in the refrigerator.
Diffstat (limited to 'src/or/directory.c')
-rw-r--r-- | src/or/directory.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/or/directory.c b/src/or/directory.c index 776b7a25f..a9ce483e3 100644 --- a/src/or/directory.c +++ b/src/or/directory.c @@ -3729,7 +3729,7 @@ download_status_reset(download_status_t *dls) const int *schedule; size_t schedule_len; - find_dl_schedule_and_len(dls, get_options()->DirPort, + find_dl_schedule_and_len(dls, get_options()->DirPort != NULL, &schedule, &schedule_len); dls->n_download_failures = 0; |