revert the or_connection and dir_connection flags
commitf590a303db344a18f4e77be803a615e259892d2d
authorRoger Dingledine <arma@torproject.org>
Thu, 24 Mar 2016 22:53:33 +0000 (24 18:53 -0400)
committerRoger Dingledine <arma@torproject.org>
Thu, 24 Mar 2016 23:14:21 +0000 (24 19:14 -0400)
tree8cbdeca79ec8e2efa9695c5710560e4e0ca44611
parentd5f50cb052a535b5193dc14ccfd3239a722943c2
revert the or_connection and dir_connection flags

They incorrectly summarized what the function was planning to do,
leading to wrong behavior like making an http request to an orport,
or making a begindir request to a dirport.

This change backs out some of the changes made in commit e72cbf7a, and
most of the changes made in commit ba6509e9.

This patch resolves bug 18625. There more changes I want to make
after this one, for code clarity.
src/or/directory.c