]> git.ipfire.org Git - thirdparty/tor.git/log
thirdparty/tor.git
3 years agoMerge branch 'maint-0.4.6'
David Goulet [Wed, 3 Nov 2021 13:53:35 +0000 (09:53 -0400)] 
Merge branch 'maint-0.4.6'

3 years agoMerge branch 'maint-0.4.5' into maint-0.4.6
David Goulet [Wed, 3 Nov 2021 13:53:31 +0000 (09:53 -0400)] 
Merge branch 'maint-0.4.5' into maint-0.4.6

Signed-off-by: David Goulet <dgoulet@torproject.org>
3 years agoMerge branch 'tor-gitlab/mr/477' into maint-0.4.5
David Goulet [Wed, 3 Nov 2021 13:52:03 +0000 (09:52 -0400)] 
Merge branch 'tor-gitlab/mr/477' into maint-0.4.5

3 years agorelay: Don't allow DirPort on non-IPv4
David Goulet [Tue, 2 Nov 2021 13:34:03 +0000 (09:34 -0400)] 
relay: Don't allow DirPort on non-IPv4

Our code doesn't allow it and so this prevents an assert() crash if the
DirPort is for instance IPv6 only.

Fixes #40494

Signed-off-by: David Goulet <dgoulet@torproject.org>
3 years agoshellcheck: Remove unused variable in ci-driver.sh
David Goulet [Wed, 3 Nov 2021 13:50:43 +0000 (09:50 -0400)] 
shellcheck: Remove unused variable in ci-driver.sh

Signed-off-by: David Goulet <dgoulet@torproject.org>
3 years agoMerge branch 'maint-0.4.6'
David Goulet [Wed, 3 Nov 2021 13:49:07 +0000 (09:49 -0400)] 
Merge branch 'maint-0.4.6'

Signed-off-by: David Goulet <dgoulet@torproject.org>
3 years agoMerge branch 'maint-0.4.5' into maint-0.4.6
David Goulet [Wed, 3 Nov 2021 13:47:43 +0000 (09:47 -0400)] 
Merge branch 'maint-0.4.5' into maint-0.4.6

3 years agoMerge branch 'maint-0.3.5' into maint-0.4.5
David Goulet [Wed, 3 Nov 2021 13:47:43 +0000 (09:47 -0400)] 
Merge branch 'maint-0.3.5' into maint-0.4.5

3 years agoshellcheck: Make it happy on couple scripts
David Goulet [Wed, 3 Nov 2021 13:47:30 +0000 (09:47 -0400)] 
shellcheck: Make it happy on couple scripts

Signed-off-by: David Goulet <dgoulet@torproject.org>
3 years agoMerge remote-tracking branch 'tor-gitlab/mr/474' into main
Alexander Færøy [Tue, 2 Nov 2021 15:28:56 +0000 (15:28 +0000)] 
Merge remote-tracking branch 'tor-gitlab/mr/474' into main

3 years agoMerge branch 'maint-0.4.6' into main
Alexander Færøy [Tue, 2 Nov 2021 15:27:08 +0000 (15:27 +0000)] 
Merge branch 'maint-0.4.6' into main

3 years agoAdd missing ponctuation.
Alexander Færøy [Tue, 2 Nov 2021 15:26:09 +0000 (15:26 +0000)] 
Add missing ponctuation.

3 years agoman: Missing OverloadStatistics option in tor.1
David Goulet [Tue, 2 Nov 2021 13:50:18 +0000 (09:50 -0400)] 
man: Missing OverloadStatistics option in tor.1

Closes #40504

Signed-off-by: David Goulet <dgoulet@torproject.org>
3 years agoUse TOR_PRIuSZ instead of %ld for CC logging.
Alexander Færøy [Fri, 29 Oct 2021 19:08:20 +0000 (19:08 +0000)] 
Use TOR_PRIuSZ instead of %ld for CC logging.

This patch fixes the current build of main on Windows.

3 years agoMerge branch 'maint-0.3.5' into maint-0.4.5
Alexander Færøy [Fri, 29 Oct 2021 16:56:33 +0000 (16:56 +0000)] 
Merge branch 'maint-0.3.5' into maint-0.4.5

3 years agoMerge branch 'maint-0.4.5' into maint-0.4.6
Alexander Færøy [Fri, 29 Oct 2021 16:56:33 +0000 (16:56 +0000)] 
Merge branch 'maint-0.4.5' into maint-0.4.6

3 years agoMerge branch 'maint-0.4.6' into main
Alexander Færøy [Fri, 29 Oct 2021 16:56:33 +0000 (16:56 +0000)] 
Merge branch 'maint-0.4.6' into main

3 years agoFix Windows build.
Alexander Færøy [Fri, 5 Feb 2021 17:12:52 +0000 (17:12 +0000)] 
Fix Windows build.

While trying to resolve our CI issues, the Windows build broke with an
unused function error:

   src/test/test_switch_id.c:37:1: error: ‘unprivileged_port_range_start’
   defined but not used [-Werror=unused-function]

We solve this by moving the `#if !defined(_WIN32)` test above the
`unprivileged_port_range_start()` function defintion such that it is
included in its body.

This is an unreviewed commit.

See: tor#40275

3 years agoMerge branch 'maint-0.4.6'
David Goulet [Fri, 29 Oct 2021 13:20:44 +0000 (09:20 -0400)] 
Merge branch 'maint-0.4.6'

3 years agoMerge branch 'maint-0.3.5' into maint-0.4.5
David Goulet [Fri, 29 Oct 2021 13:20:21 +0000 (09:20 -0400)] 
Merge branch 'maint-0.3.5' into maint-0.4.5

3 years agoMerge branch 'maint-0.4.5' into maint-0.4.6
David Goulet [Fri, 29 Oct 2021 13:20:21 +0000 (09:20 -0400)] 
Merge branch 'maint-0.4.5' into maint-0.4.6

3 years agochanges: Add file for ticket 26299
David Goulet [Fri, 29 Oct 2021 13:20:17 +0000 (09:20 -0400)] 
changes: Add file for ticket 26299

Signed-off-by: David Goulet <dgoulet@torproject.org>
3 years agochanges: Add file for ticket 26299
David Goulet [Fri, 29 Oct 2021 13:19:59 +0000 (09:19 -0400)] 
changes: Add file for ticket 26299

Signed-off-by: David Goulet <dgoulet@torproject.org>
3 years agochanges: Add file for ticket 26299
David Goulet [Fri, 29 Oct 2021 13:19:21 +0000 (09:19 -0400)] 
changes: Add file for ticket 26299

Signed-off-by: David Goulet <dgoulet@torproject.org>
3 years agodon't retry entry guards if they're bridges without descriptors
Roger Dingledine [Sun, 24 Oct 2021 00:32:36 +0000 (20:32 -0400)] 
don't retry entry guards if they're bridges without descriptors

When we don't yet have a descriptor for one of our bridges, disable
the entry guard retry schedule on that bridge. The entry guard retry
schedule and the bridge descriptor retry schedule can conflict,
e.g. where we mark a bridge as "maybe up" yet we don't try to fetch
its descriptor yet, leading Tor to wait (refusing to do anything)
until it becomes time to fetch the descriptor.

Fixes bug 40497; bugfix on 0.3.0.3-alpha.

3 years agodo notice-level log when we resume having enough dir info
Roger Dingledine [Sat, 23 Oct 2021 09:24:29 +0000 (05:24 -0400)] 
do notice-level log when we resume having enough dir info

we do a notice-level log when we decide we *don't* have enough dir
info, but in 0.3.5.1-alpha (see commit eee62e13d97, #14950) we lost our
corresponding notice-level log when things come back.

bugfix on 0.3.5.1-alpha; fixes bug 40496.

3 years agohandle other de-sync cases from #40396
Roger Dingledine [Fri, 29 Oct 2021 00:39:31 +0000 (20:39 -0400)] 
handle other de-sync cases from #40396

Specifically, every time a guard moves into or out of state
GUARD_REACHABLE_MAYBE, it is an opportunity for the guard reachability
state to get out of sync with the have-minimum-dir-info state.

Fixes even more of #40396.

3 years agoreassess minimum-dir-info when a bridge fails
Roger Dingledine [Fri, 22 Oct 2021 06:33:49 +0000 (02:33 -0400)] 
reassess minimum-dir-info when a bridge fails

When we try to fetch a bridge descriptor and we fail, we mark
the guard as failed, but we never scheduled a re-compute for
router_have_minimum_dir_info().

So if we had already decided we needed to wait for this new descriptor,
we would just wait forever -- even if, counterintuitively, *losing* the
bridge is just what we need to *resume* using the network, if we had it
in state GUARD_REACHABLE_MAYBE and we were stalling to learn this outcome.

See bug 40396 for more details.

3 years agoonly log "new bridge descriptor" if really new
Roger Dingledine [Fri, 29 Oct 2021 00:53:26 +0000 (20:53 -0400)] 
only log "new bridge descriptor" if really new

The bridge descriptor fetching codes ends up fetching a lot of duplicate
bridge descriptors, because this is how we learn when the descriptor
changes.

This commit only changes comments plus whether we log that one line.

It moves us back to the old behavior, before the previous commit for
30496, where we would only log that line when the bridge descriptor
we're talking about is better than the one we already had (if any).

3 years agomakefile: Add a reproducible dist make job
David Goulet [Thu, 28 Oct 2021 20:29:22 +0000 (16:29 -0400)] 
makefile: Add a reproducible dist make job

Signed-off-by: David Goulet <dgoulet@torproject.org>
3 years agomakefile: Add a reproducible dist make job
David Goulet [Thu, 28 Oct 2021 20:29:22 +0000 (16:29 -0400)] 
makefile: Add a reproducible dist make job

Signed-off-by: David Goulet <dgoulet@torproject.org>
3 years agomakefile: Add a reproducible dist make job
David Goulet [Thu, 28 Oct 2021 20:29:22 +0000 (16:29 -0400)] 
makefile: Add a reproducible dist make job

Signed-off-by: David Goulet <dgoulet@torproject.org>
3 years agorelease: Patches to make tarball reproducible
Alexander Færøy [Fri, 10 Jul 2020 00:31:35 +0000 (02:31 +0200)] 
release: Patches to make tarball reproducible

Closes #26299

Signed-off-by: David Goulet <dgoulet@torproject.org>
3 years agorelease: Patches to make tarball reproducible
Alexander Færøy [Fri, 10 Jul 2020 00:31:35 +0000 (02:31 +0200)] 
release: Patches to make tarball reproducible

Closes #26299

Signed-off-by: David Goulet <dgoulet@torproject.org>
3 years agoMerge branch 'maint-0.4.6'
David Goulet [Thu, 28 Oct 2021 18:27:17 +0000 (14:27 -0400)] 
Merge branch 'maint-0.4.6'

3 years agoMerge branch 'maint-0.4.5' into maint-0.4.6
David Goulet [Thu, 28 Oct 2021 18:26:35 +0000 (14:26 -0400)] 
Merge branch 'maint-0.4.5' into maint-0.4.6

3 years agochanges: Typo in file, wrong version was used
David Goulet [Thu, 28 Oct 2021 18:22:14 +0000 (14:22 -0400)] 
changes: Typo in file, wrong version was used

Signed-off-by: David Goulet <dgoulet@torproject.org>
3 years agorelease: Patches to make tarball reproducible
Alexander Færøy [Fri, 10 Jul 2020 00:31:35 +0000 (02:31 +0200)] 
release: Patches to make tarball reproducible

Closes #26299

Signed-off-by: David Goulet <dgoulet@torproject.org>
3 years agoMerge branch 'maint-0.4.6'
David Goulet [Thu, 28 Oct 2021 14:38:20 +0000 (10:38 -0400)] 
Merge branch 'maint-0.4.6'

3 years agoMerge branch 'maint-0.4.5' into maint-0.4.6
David Goulet [Thu, 28 Oct 2021 14:38:20 +0000 (10:38 -0400)] 
Merge branch 'maint-0.4.5' into maint-0.4.6

3 years agoFix compilation on systems with older compilers.
Alexander Færøy [Thu, 10 Jun 2021 20:04:13 +0000 (20:04 +0000)] 
Fix compilation on systems with older compilers.

This patch fixes a build error with GCC 7.x which doesn't seem to accept
const int's as constants in macro initialization.

See: tpo/core/tor#40410

3 years agoMerge branch 'maint-0.4.6'
David Goulet [Thu, 28 Oct 2021 13:42:38 +0000 (09:42 -0400)] 
Merge branch 'maint-0.4.6'

3 years agoMerge branch 'maint-0.4.5' into maint-0.4.6
David Goulet [Thu, 28 Oct 2021 13:42:32 +0000 (09:42 -0400)] 
Merge branch 'maint-0.4.5' into maint-0.4.6

3 years agoMerge branch 'maint-0.3.5' into maint-0.4.5
David Goulet [Thu, 28 Oct 2021 13:42:25 +0000 (09:42 -0400)] 
Merge branch 'maint-0.3.5' into maint-0.4.5

3 years agoversion: Missing version update in couple files
David Goulet [Thu, 28 Oct 2021 13:42:08 +0000 (09:42 -0400)] 
version: Missing version update in couple files

Signed-off-by: David Goulet <dgoulet@torproject.org>
3 years agoversion: Missing version update in couple files
David Goulet [Thu, 28 Oct 2021 13:41:56 +0000 (09:41 -0400)] 
version: Missing version update in couple files

Signed-off-by: David Goulet <dgoulet@torproject.org>
3 years agoversion: Missing version update in couple files
David Goulet [Thu, 28 Oct 2021 13:41:13 +0000 (09:41 -0400)] 
version: Missing version update in couple files

Signed-off-by: David Goulet <dgoulet@torproject.org>
3 years agoversion: Missing version update in couple files
David Goulet [Thu, 28 Oct 2021 13:40:50 +0000 (09:40 -0400)] 
version: Missing version update in couple files

Signed-off-by: David Goulet <dgoulet@torproject.org>
3 years agoscripts: Quiet the IPFire location GeoIP command
David Goulet [Wed, 27 Oct 2021 14:24:13 +0000 (10:24 -0400)] 
scripts: Quiet the IPFire location GeoIP command

We do this to avoid useless outputs but also, in the CI environement,
the Python logging package stacktraces with a problem on a socket.

The command still works but the logging fails. With the quiet switch, we
don't get such stacktrace.

Signed-off-by: David Goulet <dgoulet@torproject.org>
3 years agoscripts: Add -M option to git-list-tor-branches.sh
David Goulet [Tue, 26 Oct 2021 19:52:51 +0000 (15:52 -0400)] 
scripts: Add -M option to git-list-tor-branches.sh

Omit all "maint" branch. It is the opposite of -R that omits release
branches.

In other words, -M can be used to list all release branches.

Signed-off-by: David Goulet <dgoulet@torproject.org>
3 years agoMerge branch 'maint-0.4.5' into maint-0.4.6
David Goulet [Tue, 26 Oct 2021 18:33:49 +0000 (14:33 -0400)] 
Merge branch 'maint-0.4.5' into maint-0.4.6

3 years agoMerge branch 'maint-0.3.5' into maint-0.4.5
David Goulet [Tue, 26 Oct 2021 18:33:49 +0000 (14:33 -0400)] 
Merge branch 'maint-0.3.5' into maint-0.4.5

3 years agoMerge branch 'maint-0.4.6'
David Goulet [Tue, 26 Oct 2021 18:33:49 +0000 (14:33 -0400)] 
Merge branch 'maint-0.4.6'

3 years agoci: Missing source dir when parsing configure.ac version
David Goulet [Tue, 26 Oct 2021 18:33:31 +0000 (14:33 -0400)] 
ci: Missing source dir when parsing configure.ac version

Signed-off-by: David Goulet <dgoulet@torproject.org>
3 years agoMerge branch 'maint-0.4.6'
David Goulet [Tue, 26 Oct 2021 15:31:41 +0000 (11:31 -0400)] 
Merge branch 'maint-0.4.6'

3 years agoversion: Bump to 0.4.7.2-alpha-dev
David Goulet [Tue, 26 Oct 2021 15:31:38 +0000 (11:31 -0400)] 
version: Bump to 0.4.7.2-alpha-dev

Signed-off-by: David Goulet <dgoulet@torproject.org>
3 years agoMerge branch 'maint-0.4.5' into maint-0.4.6
David Goulet [Tue, 26 Oct 2021 15:31:28 +0000 (11:31 -0400)] 
Merge branch 'maint-0.4.5' into maint-0.4.6

3 years agoversion: Bump to 0.4.6.8-dev
David Goulet [Tue, 26 Oct 2021 15:31:24 +0000 (11:31 -0400)] 
version: Bump to 0.4.6.8-dev

Signed-off-by: David Goulet <dgoulet@torproject.org>
3 years agoMerge branch 'maint-0.3.5' into maint-0.4.5
David Goulet [Tue, 26 Oct 2021 15:31:14 +0000 (11:31 -0400)] 
Merge branch 'maint-0.3.5' into maint-0.4.5

3 years agoversion: Bump to 0.4.5.11-dev
David Goulet [Tue, 26 Oct 2021 15:31:06 +0000 (11:31 -0400)] 
version: Bump to 0.4.5.11-dev

Signed-off-by: David Goulet <dgoulet@torproject.org>
3 years agoversion: Bump to 0.3.5.17-dev
David Goulet [Tue, 26 Oct 2021 15:30:56 +0000 (11:30 -0400)] 
version: Bump to 0.3.5.17-dev

Signed-off-by: David Goulet <dgoulet@torproject.org>
3 years agoversion: Bump to 0.4.7.2-alpha tor-0.4.7.2-alpha
David Goulet [Tue, 26 Oct 2021 13:23:35 +0000 (09:23 -0400)] 
version: Bump to 0.4.7.2-alpha

Signed-off-by: David Goulet <dgoulet@torproject.org>
3 years agoMerge branch 'maint-0.4.6'
David Goulet [Tue, 26 Oct 2021 13:18:05 +0000 (09:18 -0400)] 
Merge branch 'maint-0.4.6'

3 years agoMerge branch 'maint-0.4.5' into maint-0.4.6
David Goulet [Tue, 26 Oct 2021 13:17:58 +0000 (09:17 -0400)] 
Merge branch 'maint-0.4.5' into maint-0.4.6

3 years agoMerge branch 'maint-0.3.5' into maint-0.4.5
David Goulet [Tue, 26 Oct 2021 13:17:52 +0000 (09:17 -0400)] 
Merge branch 'maint-0.3.5' into maint-0.4.5

3 years agoversion: Bump to 0.4.6.8
David Goulet [Tue, 26 Oct 2021 13:17:01 +0000 (09:17 -0400)] 
version: Bump to 0.4.6.8

Signed-off-by: David Goulet <dgoulet@torproject.org>
3 years agoversion: Bump to 0.4.5.11
David Goulet [Tue, 26 Oct 2021 13:16:44 +0000 (09:16 -0400)] 
version: Bump to 0.4.5.11

Signed-off-by: David Goulet <dgoulet@torproject.org>
3 years agoversion: Bump to 0.3.5.17
David Goulet [Tue, 26 Oct 2021 13:16:13 +0000 (09:16 -0400)] 
version: Bump to 0.3.5.17

Signed-off-by: David Goulet <dgoulet@torproject.org>
3 years agosort recent changelog stanzas by release date
Roger Dingledine [Tue, 26 Oct 2021 08:50:59 +0000 (04:50 -0400)] 
sort recent changelog stanzas by release date

3 years agoSync ReleaseNotes and ChangeLog from release-{0.3.5, 0.4.5, 0.4.6} to main.
Alexander Færøy [Mon, 25 Oct 2021 23:41:05 +0000 (23:41 +0000)] 
Sync ReleaseNotes and ChangeLog from release-{0.3.5, 0.4.5, 0.4.6} to main.

3 years agoAdd Changelog and ReleaseNotes entry for tor#40500.
Alexander Færøy [Mon, 25 Oct 2021 21:18:35 +0000 (21:18 +0000)] 
Add Changelog and ReleaseNotes entry for tor#40500.

3 years agoMerge branch 'maint-0.4.6' into main
Alexander Færøy [Mon, 25 Oct 2021 21:03:14 +0000 (21:03 +0000)] 
Merge branch 'maint-0.4.6' into main

3 years agoMerge branch 'maint-0.4.5' into maint-0.4.6
Alexander Færøy [Mon, 25 Oct 2021 21:02:55 +0000 (21:02 +0000)] 
Merge branch 'maint-0.4.5' into maint-0.4.6

3 years agoci: Exclude HSv2 Stem tests
David Goulet [Mon, 25 Oct 2021 17:37:38 +0000 (13:37 -0400)] 
ci: Exclude HSv2 Stem tests

Signed-off-by: David Goulet <dgoulet@torproject.org>
3 years agolast tweak on 0.4.7.2 changelog
Roger Dingledine [Mon, 25 Oct 2021 16:48:49 +0000 (12:48 -0400)] 
last tweak on 0.4.7.2 changelog

3 years agochangelog cleanups for 0.4.7.2-alpha
Roger Dingledine [Mon, 25 Oct 2021 15:53:32 +0000 (11:53 -0400)] 
changelog cleanups for 0.4.7.2-alpha

3 years agoTypo: bugfixes -> bugs.
Alexander Færøy [Mon, 25 Oct 2021 15:25:30 +0000 (15:25 +0000)] 
Typo: bugfixes -> bugs.

3 years agoRemove already released ChangeLog entry.
Alexander Færøy [Mon, 25 Oct 2021 15:18:14 +0000 (15:18 +0000)] 
Remove already released ChangeLog entry.

3 years agochangelog: ChangeLog for 0.4.7.2-alpha release
David Goulet [Mon, 25 Oct 2021 14:13:46 +0000 (10:13 -0400)] 
changelog: ChangeLog for 0.4.7.2-alpha release

Signed-off-by: David Goulet <dgoulet@torproject.org>
3 years agofetch missing bridge descriptors without delay
Roger Dingledine [Sat, 23 Oct 2021 08:18:00 +0000 (04:18 -0400)] 
fetch missing bridge descriptors without delay

Without this change, if we have a working bridge, and we add a new bridge,
we will schedule the fetch attempt for that new bridge descriptor for
three hours(!) in the future.

This change is especially needed because of bug #40396, where if you have
one working bridge and one bridge whose descriptor you haven't fetched
yet, your Tor will stall until you have successfully fetched that new
descriptor -- in this case for hours.

In the old design, we would put off all further bridge descriptor fetches
once we had any working bridge descriptor. In this new design, we make the
decision per bridge based on whether we successfully got *its* descriptor.

To make this work, we need to also call learned_bridge_descriptor() every
time we get a bridge descriptor, not just when it's a novel descriptor.

Fixes bug 40396.

Also happens to fix bug 40495 (redundant descriptor fetches for every
bridge) since now we delay fetches once we succeed.

A side effect of this change is that if we have any configured bridges
that *aren't* working, we will keep trying to fetch their descriptors
on the modern directory retry schedule -- every couple of seconds for
the first half minute, then backing off after that -- which is a lot
faster than before.

3 years agoMerge branch 'maint-0.4.6'
David Goulet [Thu, 21 Oct 2021 14:01:39 +0000 (10:01 -0400)] 
Merge branch 'maint-0.4.6'

3 years agoMerge branch 'maint-0.4.5' into maint-0.4.6
David Goulet [Thu, 21 Oct 2021 14:01:38 +0000 (10:01 -0400)] 
Merge branch 'maint-0.4.5' into maint-0.4.6

3 years agoMerge branch 'maint-0.3.5' into maint-0.4.5
David Goulet [Thu, 21 Oct 2021 14:01:38 +0000 (10:01 -0400)] 
Merge branch 'maint-0.3.5' into maint-0.4.5

3 years agofallbackdir: Regenerate the list for October 2021
David Goulet [Thu, 21 Oct 2021 13:13:40 +0000 (09:13 -0400)] 
fallbackdir: Regenerate the list for October 2021

Closes #40493

Signed-off-by: David Goulet <dgoulet@torproject.org>
3 years agoMerge branch 'tor-gitlab/mr/452_squashed' into main
Alexander Færøy [Thu, 21 Oct 2021 12:57:37 +0000 (12:57 +0000)] 
Merge branch 'tor-gitlab/mr/452_squashed' into main

3 years agoProp335: Changes file and manual entries.
Nick Mathewson [Fri, 8 Oct 2021 15:42:55 +0000 (11:42 -0400)] 
Prop335: Changes file and manual entries.

Closes #40448.

3 years agoAdd a new consensus method to handle MiddleOnly specially.
Nick Mathewson [Fri, 8 Oct 2021 15:36:04 +0000 (11:36 -0400)] 
Add a new consensus method to handle MiddleOnly specially.

When this method is in place, then any relay which is assigned
MiddleOnly has Exit, V2Dir, Guard, and HSDir cleared
(and has BadExit set if appropriate).

3 years agoImplement a MiddleOnly flag for vote generation.
Nick Mathewson [Fri, 8 Oct 2021 15:14:53 +0000 (11:14 -0400)] 
Implement a MiddleOnly flag for vote generation.

This proposal implements part of Prop335; it's based on a patch
from Neel Chauhan.

When configured to do so, authorities will assign a MiddleOnly flag
to certain relays.  Any relay which an authority gives this flag
will not get Exit, V2Dir, Guard, or HSDir, and might get BadExit if
the authority votes for that one.

3 years agoMerge remote-tracking branch 'tor-gitlab/mr/442' into main
Alexander Færøy [Thu, 21 Oct 2021 12:50:28 +0000 (12:50 +0000)] 
Merge remote-tracking branch 'tor-gitlab/mr/442' into main

3 years agoMerge branch 'maint-0.4.5' into maint-0.4.6
Alexander Færøy [Thu, 21 Oct 2021 12:35:36 +0000 (12:35 +0000)] 
Merge branch 'maint-0.4.5' into maint-0.4.6

3 years agoMerge branch 'maint-0.4.6' into main
Alexander Færøy [Thu, 21 Oct 2021 12:35:36 +0000 (12:35 +0000)] 
Merge branch 'maint-0.4.6' into main

3 years agoMerge remote-tracking branch 'tor-gitlab/mr/338' into maint-0.4.5
Alexander Færøy [Thu, 21 Oct 2021 12:35:26 +0000 (12:35 +0000)] 
Merge remote-tracking branch 'tor-gitlab/mr/338' into maint-0.4.5

3 years agoMerge branch 'maint-0.4.5' into maint-0.4.6
Alexander Færøy [Wed, 20 Oct 2021 21:47:26 +0000 (21:47 +0000)] 
Merge branch 'maint-0.4.5' into maint-0.4.6

3 years agoMerge branch 'maint-0.4.6' into main
Alexander Færøy [Wed, 20 Oct 2021 21:47:26 +0000 (21:47 +0000)] 
Merge branch 'maint-0.4.6' into main

3 years agoMerge branch 'maint-0.3.5' into maint-0.4.5
Alexander Færøy [Wed, 20 Oct 2021 21:47:17 +0000 (21:47 +0000)] 
Merge branch 'maint-0.3.5' into maint-0.4.5

3 years agoAnnounce URL to bridge status page when starting Tor as a bridge relay.
Alexander Færøy [Mon, 23 Nov 2020 23:41:17 +0000 (23:41 +0000)] 
Announce URL to bridge status page when starting Tor as a bridge relay.

This patch makes Tor announce the relay specific bridge status page URL
when Tor is starting up before bootstrap occours.

See: tor#30477

3 years agorelay: Comment out a unused variable for now
David Goulet [Wed, 20 Oct 2021 19:17:06 +0000 (15:17 -0400)] 
relay: Comment out a unused variable for now

We keep it around until libevent is fixed, it should be used again. In
the meantime, avoid the compiler to complain of this unused variable.

https://gitlab.torproject.org/dgoulet/tor/-/jobs/43358#L1522

Signed-off-by: David Goulet <dgoulet@torproject.org>
3 years agoMerge branch 'tor-gitlab/mr/464_squashed' into main
Alexander Færøy [Wed, 20 Oct 2021 18:39:07 +0000 (18:39 +0000)] 
Merge branch 'tor-gitlab/mr/464_squashed' into main

3 years agoMove "Didn't recognize cell, but circ stops here" into heartbeat.
Nick Mathewson [Tue, 19 Oct 2021 19:16:49 +0000 (15:16 -0400)] 
Move "Didn't recognize cell, but circ stops here" into heartbeat.

When we looked, this was the third most frequent message at
PROTOCOL_WARN, and doesn't actually tell us what to do about it.
Now:
 * we just log it at info
 * we log it only once per circuit
 * we report, in the heartbeat, how many times it happens, how many
   cells it happens with per circuit, and how long these circuits
   have been alive (on average).

Fixes the final part of #40400.

3 years agoMerge remote-tracking branch 'tor-gitlab/mr/466' into main
Alexander Færøy [Wed, 20 Oct 2021 17:54:27 +0000 (17:54 +0000)] 
Merge remote-tracking branch 'tor-gitlab/mr/466' into main