Nick Mathewson
0c8c295963
Merge branch 'maint-0.4.3' into maint-0.4.4
2020-07-29 12:37:08 -04:00
Nick Mathewson
9164d7c75e
Merge branch 'maint-0.4.4'
2020-07-29 12:37:08 -04:00
Nick Mathewson
3b8bf743ae
Merge branch 'maint-0.4.2' into maint-0.4.3
2020-07-29 12:37:07 -04:00
Nick Mathewson
cdb0e6c252
Merge branch 'maint-0.3.5' into maint-0.4.2
2020-07-29 12:37:07 -04:00
Nick Mathewson
c7502b6503
Add a changes file from mr 86 for 40072 fix.
2020-07-29 12:36:56 -04:00
Nick Mathewson
8c92d44622
Merge remote-tracking branch 'tor-gitlab/mr/68' into maint-0.4.4
2020-07-29 12:35:57 -04:00
Nick Mathewson
75f94ea1ec
Merge remote-tracking branch 'tor-github/pr/1987/head'
2020-07-29 10:58:47 -04:00
Alexander Færøy
eba2870d18
Merge branch 'maint-0.4.4'
2020-07-29 13:58:14 +00:00
Alexander Færøy
8e690ce736
Merge remote-tracking branch 'tor-gitlab/mr/85' into maint-0.4.4
2020-07-29 13:57:47 +00:00
Alexander Færøy
6665713967
Merge remote-tracking branch 'tor-gitlab/mr/87'
2020-07-29 13:39:59 +00:00
Alexander Færøy
109063185b
Merge branch 'tor-gitlab/mr/73_squashed'
2020-07-29 13:34:24 +00:00
Nick Mathewson
3cb9a9b8ce
Remove the connection_t.outbuf_flushlen field
...
This was once used for rate-limiting, but now it's only for
accounting. It hasn't served a useful purpose in a long time.
Closes ticket 33097.
2020-07-29 13:33:35 +00:00
Nick Mathewson
915af1a65b
Remove tor.service.in
...
We aren't good at maintaining this; downstream maintainers are much
better at figuring out what is right for them.
Closes #30797 .
2020-07-29 00:04:42 -04:00
Nick Mathewson
4e71fc92c8
WritingTests.md: add a section about shells
...
Closes #29485
2020-07-28 22:59:47 -04:00
Daniel Pinto
eab8e7af52
Fix startup crash with seccomp sandbox enabled #40072
...
Fix crash introduced in #40020 . On startup, tor calls
check_private_dir on the data and key directories. This function
uses open instead of opendir on the received directory. Data and
key directoryes are only opened here, so the seccomp rule added
should be for open instead of opendir, despite the fact that they
are directories.
2020-07-29 00:34:08 +01:00
Nick Mathewson
dcc60294ad
Use _lseeki64() on windows.
...
Fixes bug 31036; bugfix on 0.2.1.8-alpha when we moved the logging
system to use posix fds.
2020-07-28 11:30:47 -04:00
Nick Mathewson
86de51feaf
copy forward the changelog from 0.4.4.3-alpha
2020-07-27 19:16:15 -04:00
Nick Mathewson
6d3bb9a1a5
Merge branch 'maint-0.4.4'
...
"ours" to avoid version bump.
2020-07-27 19:15:25 -04:00
Nick Mathewson
0a38e02fb3
bump to 0.4.4.3-alpha-dev
2020-07-27 19:15:15 -04:00
Nick Mathewson
98d84587a8
Fix documentation of cache_failure_intro_lookup
...
Closes ticket 17793
2020-07-27 14:22:10 -04:00
Nick Mathewson
31eba7f009
Merge branch 'maint-0.4.3' into maint-0.4.4
2020-07-27 12:56:19 -04:00
Nick Mathewson
64d7b28298
Merge branch 'maint-0.4.4'
2020-07-27 12:56:19 -04:00
Nick Mathewson
97d0cb83ed
Merge branch 'maint-0.4.2' into maint-0.4.3
2020-07-27 12:56:18 -04:00
Nick Mathewson
c0bc30b6f0
Merge branch 'maint-0.3.5' into maint-0.4.2
2020-07-27 12:56:18 -04:00
Nick Mathewson
c2e265e4e5
Merge branch 'maint-0.4.4'
...
"Ours" to avoid version bump.
2020-07-27 08:33:26 -04:00
Nick Mathewson
95914ceb57
Bump to 0.4.4.3-alpha
2020-07-27 08:32:56 -04:00
Nick Mathewson
010387e4bd
Merge branch '40068_maybe'
2020-07-24 15:15:46 -04:00
David Goulet
564a9a54a1
fallbackdir: Remove all three Digitalcourage3 relays
...
They are about to be shutdown in September.
Signed-off-by: David Goulet <dgoulet@torproject.org>
2020-07-24 14:56:07 -04:00
Nick Mathewson
2299b31f40
Don't let a bad IPv6 orport stop our IPv4 bandwidth test.
...
Specifically: do not close IPv4 bandwidth-testing circuits just
because our IPv6 orport is unreachable.
Attempted fix for #40068 .
2020-07-24 14:50:42 -04:00
David Goulet
ad9806b539
relay: Publish IPv4 descriptor on guessed IPv6 reachability failure
...
On an IPv6 reachability failure test, if the address was configured, don't
publish the descriptor and log warn. If the address was auto discovered, still
publish the descriptor.
Closes #33247 .
Signed-off-by: David Goulet <dgoulet@torproject.org>
2020-07-24 12:18:07 -04:00
David Goulet
fda0fa02bf
relay: Add a cache that tracks which address was configured
...
Related to #33247
Signed-off-by: David Goulet <dgoulet@torproject.org>
2020-07-24 11:32:49 -04:00
David Goulet
bf2b1e7a6f
relay: Turn find address "method_used" into enum
...
Enum allows us to easily compare what is being returned but also better
semantic to the code.
Related #33247
Signed-off-by: David Goulet <dgoulet@torproject.org>
2020-07-24 11:32:49 -04:00
Nick Mathewson
9d922b8eaa
Merge branch 'maint-0.4.4'
2020-07-23 10:10:32 -04:00
Nick Mathewson
6354b70e49
Merge branch 'maint-0.4.2' into maint-0.4.3
2020-07-23 10:09:14 -04:00
Nick Mathewson
3bcbd69a77
Merge branch 'maint-0.3.5' into maint-0.4.2
2020-07-23 10:09:14 -04:00
Nick Mathewson
07934664c5
Merge branch 'maint-0.4.3' into maint-0.4.4
2020-07-23 10:09:14 -04:00
Nick Mathewson
f916ddd312
More info in the fallbackdir changes file
2020-07-23 10:08:42 -04:00
David Goulet
6f19e67c98
fallbackdir: Update list for 2020
...
Closes #40061
Signed-off-by: David Goulet <dgoulet@torproject.org>
2020-07-23 10:05:11 -04:00
Nick Mathewson
b3112a6d26
Merge branch 'remove-padding-fix-7869-v2'
2020-07-23 08:26:44 -04:00
Daniel Pinto
8763d96d20
Changes file for #7869
2020-07-23 08:25:22 -04:00
Daniel Pinto
d72618eb7f
Remove padding from ntor-onion-key #7869
2020-07-23 08:25:22 -04:00
David Goulet
9cd20e8276
Merge branch 'tor-gitlab/mr/75'
2020-07-23 07:16:05 -04:00
David Goulet
884ccd6996
Merge branch 'maint-0.4.4'
2020-07-22 16:14:19 -04:00
David Goulet
1ee164afc2
Merge branch 'tor-gitlab/mr/77' into maint-0.4.4
2020-07-22 16:14:11 -04:00
David Goulet
492625badf
Merge branch 'tor-gitlab/mr/74'
2020-07-22 16:09:11 -04:00
David Goulet
053e02a487
addr: Always set addr_out to UNSPEC in find_my_address
...
Related #40058
Signed-off-by: David Goulet <dgoulet@torproject.org>
2020-07-22 16:09:07 -04:00
David Goulet
65c7d33d33
relay: Support IPv6 when checking if our address changed
...
Now support IPv4 _and_ IPv6.
This also cleans up nicely the function that was moving IPv4 addresses from
uint32_t to tor_addr_t.
Fixes #40058
Signed-off-by: David Goulet <dgoulet@torproject.org>
2020-07-22 16:09:07 -04:00
Nick Mathewson
ceb6585a4b
Treat all extorport connections with un-set addresses as remote
...
Without this fix, if an PT forgets to send a USERADDR command, that
results in a connection getting treated as local for the purposes of
rate-limiting.
If the PT _does_ use USERADDR, we still believe it.
Closes ticket 33747.
2020-07-22 15:21:56 -04:00
Nick Mathewson
faa752f3c9
Adjust the rules for warning about too many connections.
...
Previously we tolerated up to 1.5 connections for every relay we
were connected to, and didn't warn if we had fewer than 5
connections total.
Now we tolerate up to 1.5 connections per relay, and up to 4
connections per authority, and we don't warn at all when we have
fewer than 25 connections total.
Fixes bug 33880, which seems to have been provoked by our #17592
change in 0.3.5.
2020-07-22 14:45:03 -04:00
David Goulet
f0da04bb7b
relay: Limit Directory Authority Addresses to Address and ORPort
...
Closes #33239
Signed-off-by: David Goulet <dgoulet@torproject.org>
2020-07-22 14:17:21 -04:00