| Commit message (Collapse) | Author | Age |
| |
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
|
| |
Right now it says "552 internal error" because there's no way for
getinfo_helper_*() countries to specify an error message. This
patch changes the getinfo_helper_*() interface, and makes most of the
getinfo helpers give useful error messages in response to failures.
This should prevent recurrences of bug 1699, where a missing GeoIPFile
line in the torrc made GETINFO ip-to-county/* fail in a "not obvious
how to fix" way.
|
|\
| |
| |
| |
| |
| | |
Conflicts:
src/common/test.h
src/or/test.c
|
| | |
|
| |
| |
| |
| |
| | |
It isn't necessary to walk through all possible subnets when the policy
we're looking at doesn't touch that subnet.
|
| | |
|
| |
| |
| |
| |
| | |
The original comment said what it did if there was at least one /8 that
allowed access to the port, but not what it did otherwise.
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
exit_policy_is_general_exit() assumed that there are no redundancies
in the passed policy, in the sense that we actively combine entries
in the policy to really get rid of any redundancy. Since we cannot
do that without massively rewriting the policy lines the relay
operators set, fix exit_policy_is_general_exit().
Fixes bug 1238, discovered by Martin Kowalczyk.
|
| | |
|
| |
| |
| |
| |
| |
| |
| |
| | |
Some *_free functions threw asserts when passed NULL. Now all of them
accept NULL as input and perform no action when called that way.
This gains us consistence for our free functions, and allows some
code simplifications where an explicit null check is no longer necessary.
|
|/
|
|
| |
Bridges do not use the default exit policy, but reject *:* by default.
|
|
|
|
| |
This is a posible fix for bug 996.
|
| |
|
| |
|
|
|
|
| |
svn:r18827
|
|
|
|
|
|
|
|
| |
The subversion $Id$ fields made every commit force a rebuild of
whatever file got committed. They were not actually useful for
telling the version of Tor files in the wild.
svn:r17867
|
|
|
|
|
|
| |
Until we do ipv6 exit policies and until we know whether we even allow ::ffff:0:0/96 addresses, there is no point in doing "semantic" comparisons. This was also showing up on oprofile.
svn:r17803
|
|
|
|
|
|
|
|
|
|
| |
Specifically, split compare_tor_addr_to_addr_policy() from a loop with a bunch
of complicated ifs inside into some ifs, each with a simple loop. Rearrange
router_find_exact_exit_enclave() to run a little faster. Bizarrely,
router_policy_rejects_all() shows up on oprofile, so precalculate it per
routerinfo.
svn:r17802
|
|
|
|
| |
svn:r17734
|
|
|
|
|
|
| |
comments so that they will get recognized as doxygen.
svn:r17729
|
|
|
|
|
|
| |
patch.
svn:r17686
|
|
|
|
| |
svn:r17199
|
|
|
|
| |
svn:r17186
|
|
|
|
|
|
|
|
|
| |
rejected them in 0.1.0.15, because back in 2005 they were commonly
misconfigured and ended up as spam targets. We hear they are better
locked down these days.
svn:r16898
|
|
|
|
| |
svn:r16802
|
|
|
|
| |
svn:r16780
|
|
|
|
|
|
| |
almost inevitable.
svn:r16779
|
|
|
|
| |
svn:r16549
|
|
|
|
|
|
| |
Explicitly mention them as reject 1-65535.
svn:r16543
|
|
|
|
| |
svn:r16535
|
|
|
|
|
|
| |
1000 chars
svn:r16530
|
|
|
|
| |
svn:r16528
|
|
|
|
| |
svn:r16526
|
|
|
|
| |
svn:r16525
|
|
|
|
| |
svn:r16524
|
|
|
|
| |
svn:r16523
|
|
|
|
| |
svn:r16522
|
|
|
|
| |
svn:r16521
|
|
|
|
|
|
| |
save my soul
svn:r16520
|
|
|
|
|
|
| |
set of helpers
svn:r16519
|
|
|
|
| |
svn:r16518
|
|
|
|
|
|
|
| |
Initial conversion of uint32_t addr to tor_addr_t addr in connection_t and related types. Most of the Tor wire formats using these new types are in, but the code to generate and use it is not. This is a big patch. Let me know what it breaks for you.
svn:r16435
|
|
|
|
|
|
| |
policies was uninitialized.
svn:r16372
|
|
|
|
|
|
|
| |
Tor_addr_compare did a semantic comparison, such that ::1.2.3.4 and 1.2.3.4 were "equal". we sometimes need an exact comparison. Add a feature to do that.
svn:r16210
|
|
|
|
|
|
|
| |
Make generic address manipulation functions work better. Switch address policy code to use tor_addr_t, so it can handle IPv6. That is a good place to start.
svn:r16178
|
|
|
|
|
|
|
| |
Free baddir and badexit policy lists on exit. fixes bug 672. only affects authorities.
svn:r14431
|
|
|
|
|
|
|
| |
Free some static hashtables and the log mutex on exit. Backport candidate.
svn:r14212
|