[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[tor-bugs] #7952 [Tor]: Control port method to get the exit policy
#7952: Control port method to get the exit policy
-------------------------+--------------------------------------------------
Reporter: atagar | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone:
Component: Tor | Version:
Keywords: | Parent:
Points: | Actualpoints:
-------------------------+--------------------------------------------------
Presently controllers can GETCONF the ExitPolicy, but not get the actual
exit policy we're running with. It would be nice if it was exposed via the
control port.
Here's what I ended up writing in stem to get around this...
https://gitweb.torproject.org/stem.git/commitdiff/716f8a6
{{{
19:23 < armadev> atagar: re f0ae1eaee, where were you seeing exit policies
with redundant lines?
tor tries to get rid of redundant lines too. i wonder if
it doesn't do it well
enough, or doesn't do it pervasively enough?
19:24 < armadev> atagar: ...perhaps tor doesn't export its exit policy to
the control port at all
19:43 < atagar> armadev: I don't think that it does, so I wrote a method
for getting it...
19:43 < atagar>
https://gitweb.torproject.org/stem.git/commitdiff/716f8a693e9b814da5e2c9df551dbe6768f4f324
19:43 < atagar> It would be nicer to fetch via the control port though. :)
19:43 < armadev> for these cases, it would be great if you opened a tor
ticket to say what you want
exported
19:44 < atagar> ok, will do
19:44 < armadev> i guess there should be a balance between how much work
tor does, and how much
work the controller does
19:44 < armadev> but in general, if the argument can go "each controller
would have to implement
this thing itself, which is best done in tor", then it
should go into tor
}}}
--
Ticket URL: <https://trac.torproject.org/projects/tor/ticket/7952>
Tor Bug Tracker & Wiki <https://trac.torproject.org/>
The Tor Project: anonymity online
_______________________________________________
tor-bugs mailing list
tor-bugs@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-bugs