aboutsummaryrefslogtreecommitdiff
path: root/src/test/test_config.c
Commit message (Expand)AuthorAge
* Update the copyright date to 201.Nick Mathewson2013-01-16
* Implement option to turn off DNS cache use on a client port•••(This is part 2 of making DNS cache use enabled/disabled on a per-client port basis. This implements the CacheIPv[46]DNS options, but not the UseCachedIPv[46] ones.) Nick Mathewson2012-12-17
* Move address map into its own file.Nick Mathewson2012-11-14
* Split the generic config_fmt_t code into a new confparse.c file•••This helps us split up one of our larger files, and sets the stage for refactoring the configuration backend a little Nick Mathewson2012-09-13
* Merge remote-tracking branch 'public/bug3940_redux'Nick Mathewson2012-06-13
|\
| * An attempt at bug3940 and making AllowDotExit 0 work with MapAddress•••This time, I follow grarpamp's suggestion and move the check for .exit+AllowDotExit 0 to the top of connection_ap_rewrite_and_attach, before any rewriting occurs. This way, .exit addresses are forbidden as they arrive from a socks connection or a DNSPort request, and not otherwise. It _is_ a little more complicated than that, though. We need to treat any .exit addresses whose source is TrackHostExits as meaning that we can retry without that exit. We also need to treat any .exit address that comes from an AutomapHostsOnResolve operation as user-provided (and thus forbidden if AllowDotExits==0), so that transitioning from AllowDotExits==1 to AllowDotExits==0 will actually turn off automapped .exit addresses. Nick Mathewson2012-05-11
* | Update copyright dates to 2012; add a few missing copyright statementsNick Mathewson2012-06-04
|/
* Appease check-spacesSebastian Hahn2011-12-02
* Merge branch 'bug933_nm_rebased_v2'•••Conflicts: src/test/test.c Nick Mathewson2011-11-30
* No new "LEGACY" tests allowed.Nick Mathewson2011-11-30
* Fix compilation: get_options() now returns constNick Mathewson2011-11-30
* Address nickm's comments at https://trac.torproject.org/projects/tor/ticket/9...••• 1. Only allow '*.' in MapAddress expressions. Ignore '*ample.com' and '.example.com'. This has resulted in a slight refactoring of config_register_addressmaps. 2. Add some more detail to the man page entry for AddressMap. 3. Fix initialization of a pointer to NULL rather than 0. 4. Update the unit tests to cater for the changes in 1 and test more explicitly for recursive mapping. Robert Hogan2011-11-30
* Address nickm's comments at https://trac.torproject.org/projects/tor/ticket/9...•••1. Implement the following mapping rules: MapAddress a.b.c d.e.f # This is what we have now MapAddress .a.b.c d.e.f # Replaces any address ending with .a.b.c with d.e.f MapAddress .a.b.c .d.e.f # Replaces the .a.b.c at the end of any addr with .d.e.f (Note that 'a.b.c .d.e.f' is invalid, and will be rejected.) 2. Add tests for the new rules. 3. Allow proper wildcard annotation, i.e. '*.d.e' '.d.e' will still work. 4. Update addressmap_entry_t with an is_wildcard member. Robert Hogan2011-11-30
* bug933 - Match against super-domains in MapAddress•••Allow MapAddress to handle directives such as: MapAddress .torproject.org .torserver.exit MapAddress .org 1.1.1.1 Add tests for addressmap_rewrite. Robert Hogan2011-11-30