]> git.ipfire.org Git - thirdparty/tor.git/log
thirdparty/tor.git
7 years agoMerge remote-tracking branch 'tlyu-github/travis-workaround-master'
Nick Mathewson [Fri, 19 Jan 2018 15:18:55 +0000 (10:18 -0500)] 
Merge remote-tracking branch 'tlyu-github/travis-workaround-master'

7 years agoMerge branch 'maint-0.3.1'
Nick Mathewson [Fri, 19 Jan 2018 15:18:35 +0000 (10:18 -0500)] 
Merge branch 'maint-0.3.1'

"ours" merge to avoid the 0.3.1 version of the 24863 fix.

7 years agoMerge remote-tracking branch 'tlyu-github/travis-workaround-031' into maint-0.3.1
Nick Mathewson [Fri, 19 Jan 2018 15:18:21 +0000 (10:18 -0500)] 
Merge remote-tracking branch 'tlyu-github/travis-workaround-031' into maint-0.3.1

7 years agoMerge branch 'maint-0.3.0' into maint-0.3.1
Nick Mathewson [Fri, 19 Jan 2018 15:17:33 +0000 (10:17 -0500)] 
Merge branch 'maint-0.3.0' into maint-0.3.1

"ours" merge to avoid 0.2.5 version of #24863 fix.

7 years agoMerge branch 'maint-0.2.9' into maint-0.3.0
Nick Mathewson [Fri, 19 Jan 2018 15:17:05 +0000 (10:17 -0500)] 
Merge branch 'maint-0.2.9' into maint-0.3.0

7 years agoMerge branch 'maint-0.2.5' into maint-0.2.9
Nick Mathewson [Fri, 19 Jan 2018 15:16:47 +0000 (10:16 -0500)] 
Merge branch 'maint-0.2.5' into maint-0.2.9

7 years agoMerge branch 'restart_debug_squashed'
Nick Mathewson [Fri, 19 Jan 2018 14:52:14 +0000 (09:52 -0500)] 
Merge branch 'restart_debug_squashed'

7 years agoAdd a mostly disabled feature to debug restarting in-process
Nick Mathewson [Mon, 11 Dec 2017 15:57:00 +0000 (10:57 -0500)] 
Add a mostly disabled feature to debug restarting in-process

For 23847, we want Tor to be able to shut down and then restart in
the same process.  Here's a patch to make the Tor binary do that.
To test it, you need to build with --enable-restart-debugging, and
then you need to set the environment variable TOR_DEBUG_RESTART.
With this option, Tor will then run for 5 seconds, then restart
itself in-process without exiting.  This only happens once.

You can change the 5-second interval using
TOR_DEBUG_RESTART_AFTER_SECONDS.

Implements ticket 24583.

7 years agoDon't call Libevent's event_base_free() on NULL.
Nick Mathewson [Fri, 19 Jan 2018 14:45:10 +0000 (09:45 -0500)] 
Don't call Libevent's event_base_free() on NULL.

It doesn't crash, but it produces a warning.

Fixes bug 24933; bugfix on 322abc030e53c7e84ca9f22a47b2965f2. Bug
not in any released Tor.

7 years agoMerge branch 'maint-0.3.2'
Nick Mathewson [Thu, 18 Jan 2018 13:13:48 +0000 (08:13 -0500)] 
Merge branch 'maint-0.3.2'

7 years agoMerge branch 'maint-0.3.1' into maint-0.3.2
Nick Mathewson [Thu, 18 Jan 2018 13:13:48 +0000 (08:13 -0500)] 
Merge branch 'maint-0.3.1' into maint-0.3.2

7 years agoMerge branch 'bug24826_031' into maint-0.3.1
Nick Mathewson [Thu, 18 Jan 2018 13:13:45 +0000 (08:13 -0500)] 
Merge branch 'bug24826_031' into maint-0.3.1

7 years agoWork around Travis CI ptrace regression
Taylor Yu [Wed, 10 Jan 2018 20:52:04 +0000 (14:52 -0600)] 
Work around Travis CI ptrace regression

Travis CI deployed a change that disables ptrace capabilities in
container builds, which prevents LeakSanitizer on clang from working
properly.  Set "sudo: required" to force non-container builds for
clang and work around this.

7 years agoWork around Travis CI ptrace regression
Taylor Yu [Wed, 10 Jan 2018 20:52:04 +0000 (14:52 -0600)] 
Work around Travis CI ptrace regression

Travis CI deployed a change that disables ptrace capabilities in
container builds, which prevents LeakSanitizer on clang from working
properly.  Set "sudo: required" to force non-container builds for
clang and work around this.

7 years agoWork around Travis CI ptrace regression
Taylor Yu [Wed, 10 Jan 2018 20:52:04 +0000 (14:52 -0600)] 
Work around Travis CI ptrace regression

Travis CI deployed a change that disables ptrace capabilities in
container builds, which prevents LeakSanitizer on clang from working
properly.  Set "sudo: required" to force non-container builds for
clang and work around this.

7 years agoMerge branch 'bug22798_029_squashed'
Nick Mathewson [Wed, 17 Jan 2018 18:26:41 +0000 (13:26 -0500)] 
Merge branch 'bug22798_029_squashed'

7 years agoMerge branch 'maint-0.3.2'
Nick Mathewson [Wed, 17 Jan 2018 16:13:18 +0000 (11:13 -0500)] 
Merge branch 'maint-0.3.2'

7 years agoMerge branch 'maint-0.3.1' into maint-0.3.2
Nick Mathewson [Wed, 17 Jan 2018 16:12:15 +0000 (11:12 -0500)] 
Merge branch 'maint-0.3.1' into maint-0.3.2

7 years agoMerge branch 'maint-0.3.2'
Nick Mathewson [Wed, 17 Jan 2018 15:50:58 +0000 (10:50 -0500)] 
Merge branch 'maint-0.3.2'

7 years agoMerge remote-tracking branch 'arma/bug24894' into maint-0.3.2
Nick Mathewson [Wed, 17 Jan 2018 15:49:45 +0000 (10:49 -0500)] 
Merge remote-tracking branch 'arma/bug24894' into maint-0.3.2

7 years agoupdate comment; ignore argument on non-win
Nick Mathewson [Tue, 16 Jan 2018 19:35:49 +0000 (14:35 -0500)] 
update comment; ignore argument on non-win

7 years agoImprove Windows performance with SIO_IDEAL_SEND_BACKLOG_QUERY.
Nick Mathewson [Tue, 16 Jan 2018 19:23:56 +0000 (14:23 -0500)] 
Improve Windows performance with SIO_IDEAL_SEND_BACKLOG_QUERY.

Patch written by "Vort" on trac. Addresses ticket 22798.

7 years agoMerge branch 'bug21074_029'
Nick Mathewson [Wed, 17 Jan 2018 14:07:50 +0000 (09:07 -0500)] 
Merge branch 'bug21074_029'

7 years agoAdd a cast to avoid a signed/unsigned comparison
Nick Mathewson [Wed, 17 Jan 2018 14:06:32 +0000 (09:06 -0500)] 
Add a cast to avoid a signed/unsigned comparison

7 years agofix a check-changes warning
Nick Mathewson [Tue, 16 Jan 2018 19:41:43 +0000 (14:41 -0500)] 
fix a check-changes warning

7 years agoMerge branch 'bug21074_029'
Nick Mathewson [Tue, 16 Jan 2018 19:13:39 +0000 (14:13 -0500)] 
Merge branch 'bug21074_029'

7 years agoMerge branch 'maint-0.3.2'
Nick Mathewson [Tue, 16 Jan 2018 18:36:48 +0000 (13:36 -0500)] 
Merge branch 'maint-0.3.2'

7 years agoMerge remote-tracking branch 'public/bug24652_032' into maint-0.3.2
Nick Mathewson [Tue, 16 Jan 2018 18:35:52 +0000 (13:35 -0500)] 
Merge remote-tracking branch 'public/bug24652_032' into maint-0.3.2

7 years agoMerge branch 'stack_em_up'
Nick Mathewson [Tue, 16 Jan 2018 18:31:29 +0000 (13:31 -0500)] 
Merge branch 'stack_em_up'

7 years agoRepair a crash bug in src/test/bench
Nick Mathewson [Tue, 16 Jan 2018 18:29:11 +0000 (13:29 -0500)] 
Repair a crash bug in src/test/bench

This was caused because of the new KeyDirectory and CacheDirectory
options not being set. Bugfix on 0.3.3.0-alpha; not in any released
Tor.

7 years agoImprove fragile-hardening performance of consensus_split_lines.
Nick Mathewson [Tue, 16 Jan 2018 17:42:40 +0000 (12:42 -0500)] 
Improve fragile-hardening performance of consensus_split_lines.

For whatever reason, in my testing, using memchr() here improves
performance over strchr() by a great deal.

Fixes bug 24826; bugfix on 0.3.1.1-alpha.

7 years agoUpdate scan-build.sh to work with the latest clangalyzer
Nick Mathewson [Tue, 16 Jan 2018 13:56:07 +0000 (08:56 -0500)] 
Update scan-build.sh to work with the latest clangalyzer

7 years agoFix a (spurious) scan-build warning in test_introduce1_validation()
Nick Mathewson [Tue, 16 Jan 2018 13:36:34 +0000 (08:36 -0500)] 
Fix a (spurious) scan-build warning in test_introduce1_validation()

Since helper_create_introduce1_cell() checks "cell" for nullness,
scan-build is concerned that test_introduce1_validation()
dereferences it without checking it.  So, add a check.

Not backporting, since this is spurious, _and_ tests-only.

7 years agoRemove false positives from channel_is_client()
Roger Dingledine [Tue, 16 Jan 2018 03:33:40 +0000 (22:33 -0500)] 
Remove false positives from channel_is_client()

Fix a set of false positives where relays would consider connections
to other relays as being client-only connections (and thus e.g.
deserving different link padding schemes) if those relays fell out
of the consensus briefly.

Now we look only at the initial handshake and whether the connection
authenticated as a relay.

Fixes bug 24898; bugfix on 0.3.1.1-alpha.

7 years agov3 onion services now obey MAX_REND_FAILURES
Roger Dingledine [Mon, 15 Jan 2018 21:41:47 +0000 (16:41 -0500)] 
v3 onion services now obey MAX_REND_FAILURES

New-style (v3) onion services now obey the "max rendezvous circuit
attempts" logic.

Previously they would make as many rendezvous circuit attempts as they
could fit in the MAX_REND_TIMEOUT second window before giving up.

Fixes bug 24894; bugfix on 0.3.2.1-alpha.

7 years agoRemove a needless changefile. (Needless because bug not released.)
Nick Mathewson [Fri, 12 Jan 2018 18:30:06 +0000 (13:30 -0500)] 
Remove a needless changefile. (Needless because bug not released.)

7 years agoMerge remote-tracking branch 'ffmancera/bug24861'
Nick Mathewson [Fri, 12 Jan 2018 18:29:53 +0000 (13:29 -0500)] 
Merge remote-tracking branch 'ffmancera/bug24861'

7 years agoFix minGW compatibility issue with zu format specifier.
Fernando Fernandez Mancera [Fri, 12 Jan 2018 16:44:30 +0000 (17:44 +0100)] 
Fix minGW compatibility issue with zu format specifier.

Define TOR_PRIuSZ as minGW compiler doesn't support zu format specifier for
size_t type.

Fixes #24861 on ac9eebd.

Signed-off-by: Fernando Fernandez Mancera <ffernandezmancera@gmail.com>
7 years agoMerge branch 'maint-0.3.2'
Nick Mathewson [Fri, 12 Jan 2018 01:00:39 +0000 (20:00 -0500)] 
Merge branch 'maint-0.3.2'

7 years agoReword requirement to set Myfamily correctly
Sebastian Hahn [Thu, 11 Jan 2018 21:03:14 +0000 (22:03 +0100)] 
Reword requirement to set Myfamily correctly

7 years agoNote contactinfo and myfamily as required in more places
Nick Mathewson [Wed, 20 Dec 2017 16:10:14 +0000 (11:10 -0500)] 
Note contactinfo and myfamily as required in more places

Includes a sentence from cypherpunks; for ticket 24526.

7 years agoMerge remote-tracking branch 'sebastian/myfamily'
Nick Mathewson [Fri, 12 Jan 2018 00:59:32 +0000 (19:59 -0500)] 
Merge remote-tracking branch 'sebastian/myfamily'

7 years agoMerge branch 'bug24582'
Nick Mathewson [Fri, 12 Jan 2018 00:57:57 +0000 (19:57 -0500)] 
Merge branch 'bug24582'

7 years agoReword requirement to set Myfamily correctly
Sebastian Hahn [Thu, 11 Jan 2018 21:03:14 +0000 (22:03 +0100)] 
Reword requirement to set Myfamily correctly

7 years agoOn shutdown, mark openssl as uninitialized.
Nick Mathewson [Thu, 11 Jan 2018 17:49:28 +0000 (12:49 -0500)] 
On shutdown, mark openssl as uninitialized.

This causes openssl to get completely reinitialized on startup,
which is probably a good idea.

7 years agoMake the warnings about restarting tor in-process more scary.
Nick Mathewson [Thu, 11 Jan 2018 17:46:50 +0000 (12:46 -0500)] 
Make the warnings about restarting tor in-process more scary.

7 years agoMerge branch 'restart_nocrash'
Nick Mathewson [Thu, 11 Jan 2018 17:45:25 +0000 (12:45 -0500)] 
Merge branch 'restart_nocrash'

7 years agoMerge branch 'simplify_transition_allowed'
Nick Mathewson [Thu, 11 Jan 2018 17:39:37 +0000 (12:39 -0500)] 
Merge branch 'simplify_transition_allowed'

7 years agoMerge branch 'bug24526_squashed'
Nick Mathewson [Thu, 11 Jan 2018 17:33:52 +0000 (12:33 -0500)] 
Merge branch 'bug24526_squashed'

7 years agoNote contactinfo and myfamily as required in more places
Nick Mathewson [Wed, 20 Dec 2017 16:10:14 +0000 (11:10 -0500)] 
Note contactinfo and myfamily as required in more places

Includes a sentence from cypherpunks; for ticket 24526.

7 years agoAdd a blank line per dgoulet review.
Nick Mathewson [Thu, 11 Jan 2018 17:29:29 +0000 (12:29 -0500)] 
Add a blank line per dgoulet review.

7 years agoMerge branch 'bug24584'
Nick Mathewson [Thu, 11 Jan 2018 17:28:29 +0000 (12:28 -0500)] 
Merge branch 'bug24584'

7 years agoCompute flavor name before dereference, to avoid a STACK warning.
Nick Mathewson [Thu, 11 Jan 2018 16:31:03 +0000 (11:31 -0500)] 
Compute flavor name before dereference, to avoid a STACK warning.

(See 24423)

7 years agoMerge remote-tracking branch 'ffmancera/github/bug24573'
Nick Mathewson [Thu, 11 Jan 2018 13:31:25 +0000 (08:31 -0500)] 
Merge remote-tracking branch 'ffmancera/github/bug24573'

7 years agoMerge branch 'bug24733_squashed_2'
Nick Mathewson [Wed, 10 Jan 2018 17:57:23 +0000 (12:57 -0500)] 
Merge branch 'bug24733_squashed_2'

7 years agoDocument the alignment limitation of tor_free()
Nick Mathewson [Wed, 10 Jan 2018 14:55:01 +0000 (09:55 -0500)] 
Document the alignment limitation of tor_free()

7 years agoExtract the raw_free() of ifc_buf into a new function.
Nick Mathewson [Wed, 10 Jan 2018 14:51:45 +0000 (09:51 -0500)] 
Extract the raw_free() of ifc_buf into a new function.

Explain the problem more correctly.

7 years agoStop invoking undefined behaviour by using tor_free() on an unaligned pointer
teor [Sun, 24 Dec 2017 11:36:52 +0000 (22:36 +1100)] 
Stop invoking undefined behaviour by using tor_free() on an unaligned pointer

... in get_interface_addresses_ioctl().

This pointer alignment issue exists on x86_64 macOS, but is unlikely to exist
elsewhere. (i386 macOS only requires 4-byte alignment, and other OSs have
8-byte ints.)

Fixes bug 24733; not in any released version of tor.

7 years agoMerge remote-tracking branch 'ffmancera/github/bug24501'
Nick Mathewson [Wed, 10 Jan 2018 17:46:39 +0000 (12:46 -0500)] 
Merge remote-tracking branch 'ffmancera/github/bug24501'

7 years agoRemove needless parentheses
Nick Mathewson [Wed, 10 Jan 2018 14:39:13 +0000 (09:39 -0500)] 
Remove needless parentheses

7 years agoMerge remote-tracking branch 'teor/Bug-23966'
Nick Mathewson [Wed, 10 Jan 2018 14:38:38 +0000 (09:38 -0500)] 
Merge remote-tracking branch 'teor/Bug-23966'

7 years agoticket 22145 changes file
Nick Mathewson [Wed, 10 Jan 2018 14:35:11 +0000 (09:35 -0500)] 
ticket 22145 changes file

7 years agoMerge remote-tracking branch 'teor/bug22145_032'
Nick Mathewson [Wed, 10 Jan 2018 14:33:55 +0000 (09:33 -0500)] 
Merge remote-tracking branch 'teor/bug22145_032'

7 years agoMerge branch 'maint-0.3.2'
Nick Mathewson [Tue, 9 Jan 2018 15:12:43 +0000 (10:12 -0500)] 
Merge branch 'maint-0.3.2'

"ours" merge to avoid version bump.

7 years agoIncrement version to 0.3.2.9-dev
Nick Mathewson [Tue, 9 Jan 2018 15:12:25 +0000 (10:12 -0500)] 
Increment version to 0.3.2.9-dev

7 years agoForward-port changelog and releasenotes for 0.3.2.9
Nick Mathewson [Tue, 9 Jan 2018 15:11:46 +0000 (10:11 -0500)] 
Forward-port changelog and releasenotes for 0.3.2.9

7 years agoMerge branch 'maint-0.3.2'
Nick Mathewson [Mon, 8 Jan 2018 16:39:38 +0000 (11:39 -0500)] 
Merge branch 'maint-0.3.2'

"ours" merge to avoid version bump.

7 years agoIncrement version to 0.3.2.9
Nick Mathewson [Mon, 8 Jan 2018 16:39:24 +0000 (11:39 -0500)] 
Increment version to 0.3.2.9

7 years agoMerge branch 'maint-0.3.2'
Nick Mathewson [Mon, 8 Jan 2018 16:10:53 +0000 (11:10 -0500)] 
Merge branch 'maint-0.3.2'

There was a merge conflict on fallback_dirs.inc, which we resolve in
favor of the newly generated version for #24801.

7 years agoMerge branch 'maint-0.2.9' into maint-0.3.0
Nick Mathewson [Mon, 8 Jan 2018 16:10:36 +0000 (11:10 -0500)] 
Merge branch 'maint-0.2.9' into maint-0.3.0

7 years agoMerge branch 'maint-0.3.0' into maint-0.3.1
Nick Mathewson [Mon, 8 Jan 2018 16:10:36 +0000 (11:10 -0500)] 
Merge branch 'maint-0.3.0' into maint-0.3.1

7 years agoMerge branch 'maint-0.3.1' into maint-0.3.2
Nick Mathewson [Mon, 8 Jan 2018 16:10:36 +0000 (11:10 -0500)] 
Merge branch 'maint-0.3.1' into maint-0.3.2

7 years agoAdd changes file for new fallback directory list.
Nick Mathewson [Mon, 8 Jan 2018 16:09:08 +0000 (11:09 -0500)] 
Add changes file for new fallback directory list.

7 years agoAdd 7 other fallback dirs from teor's tests
Nick Mathewson [Mon, 8 Jan 2018 16:03:44 +0000 (11:03 -0500)] 
Add 7 other fallback dirs from teor's tests

These are from "fallback_dirs_2018_01_06_2323_UTC_44aa1adf35_AU.inc"

7 years agoUpdate the fallback_dirs.inc file: part 1
Nick Mathewson [Mon, 8 Jan 2018 15:57:06 +0000 (10:57 -0500)] 
Update the fallback_dirs.inc file: part 1

This takes the updated fallback_dirs_2018_01_06_CA.inc from
pastly's scan.

7 years agoMerge remote-tracking branch 'arma/bug24555'
Nick Mathewson [Mon, 8 Jan 2018 15:45:40 +0000 (10:45 -0500)] 
Merge remote-tracking branch 'arma/bug24555'

7 years agoMerge branch 'maint-0.3.1' into maint-0.3.2
Nick Mathewson [Mon, 8 Jan 2018 14:35:55 +0000 (09:35 -0500)] 
Merge branch 'maint-0.3.1' into maint-0.3.2

7 years agoMerge branch 'maint-0.3.2'
Nick Mathewson [Mon, 8 Jan 2018 14:35:55 +0000 (09:35 -0500)] 
Merge branch 'maint-0.3.2'

7 years agoMerge branch 'maint-0.3.0' into maint-0.3.1
Nick Mathewson [Mon, 8 Jan 2018 14:34:57 +0000 (09:34 -0500)] 
Merge branch 'maint-0.3.0' into maint-0.3.1

7 years agoMerge branch 'maint-0.2.9' into maint-0.3.0
Nick Mathewson [Mon, 8 Jan 2018 14:34:56 +0000 (09:34 -0500)] 
Merge branch 'maint-0.2.9' into maint-0.3.0

7 years agoMerge branch 'maint-0.2.5' into maint-0.2.9
Nick Mathewson [Mon, 8 Jan 2018 14:34:56 +0000 (09:34 -0500)] 
Merge branch 'maint-0.2.5' into maint-0.2.9

7 years agoUpdate geoip and geoip6 to the January 5 2018 database.
Karsten Loesing [Mon, 8 Jan 2018 10:36:38 +0000 (11:36 +0100)] 
Update geoip and geoip6 to the January 5 2018 database.

7 years agoavoid calling format_iso_time() with TIME_MAX
Roger Dingledine [Sun, 7 Jan 2018 07:15:18 +0000 (02:15 -0500)] 
avoid calling format_iso_time() with TIME_MAX

If we tried to move a descriptor from routerlist->old_routers
back into the current routerlist, we were preparing a buffer with
format_iso_time() on ri->cert_expiration_time, and doing it preemptively
since router_add_to_routerlist() might free ri so we wouldn't be able
to get at it later in the function.

But if the descriptor we're moving doesn't have any ed signature, then
its cert will be marked to expire at TIME_MAX, and handing TIME_MAX
to format_iso_time() generates this log warning:

correct_tm(): Bug: gmtime(9223372036854775807) failed with error Value too large for defined data type: Rounding down to 2037

The fix is to preemptively remember the expiry time, but only prepare
the buffer if we know we're going to need it.

Bugfix on commit a1b0a0b9, which came about as part of a fix for bug
20020, and which is not yet in any released version of Tor (hence no
changes file).

7 years agomake a comment a bit more useful
Roger Dingledine [Sat, 6 Jan 2018 20:03:35 +0000 (15:03 -0500)] 
make a comment a bit more useful

7 years agowhitespace and typo fixes
Roger Dingledine [Sat, 6 Jan 2018 20:02:12 +0000 (15:02 -0500)] 
whitespace and typo fixes

7 years agoMerge branch 'maint-0.3.2'
Roger Dingledine [Fri, 5 Jan 2018 23:44:08 +0000 (18:44 -0500)] 
Merge branch 'maint-0.3.2'

7 years agoremove redundant "implement this" from log message
Roger Dingledine [Fri, 5 Jan 2018 23:23:07 +0000 (18:23 -0500)] 
remove redundant "implement this" from log message

7 years agoMerge remote-tracking branch 'teor/fallback-code-2018-01'
Nick Mathewson [Fri, 5 Jan 2018 21:47:28 +0000 (16:47 -0500)] 
Merge remote-tracking branch 'teor/fallback-code-2018-01'

7 years agoMerge branch 'maint-0.3.2'
Nick Mathewson [Fri, 5 Jan 2018 21:41:35 +0000 (16:41 -0500)] 
Merge branch 'maint-0.3.2'

7 years agoMerge branch 'maint-0.3.0' into maint-0.3.1
Nick Mathewson [Fri, 5 Jan 2018 21:41:34 +0000 (16:41 -0500)] 
Merge branch 'maint-0.3.0' into maint-0.3.1

7 years agoMerge branch 'maint-0.2.9' into maint-0.3.0
Nick Mathewson [Fri, 5 Jan 2018 21:41:34 +0000 (16:41 -0500)] 
Merge branch 'maint-0.2.9' into maint-0.3.0

7 years agoMerge branch 'maint-0.3.1' into maint-0.3.2
Nick Mathewson [Fri, 5 Jan 2018 21:41:34 +0000 (16:41 -0500)] 
Merge branch 'maint-0.3.1' into maint-0.3.2

7 years agoMerge branch 'teor_ticket24681_028' into maint-0.2.9
Nick Mathewson [Fri, 5 Jan 2018 21:41:31 +0000 (16:41 -0500)] 
Merge branch 'teor_ticket24681_028' into maint-0.2.9

7 years agofix a wide line
Nick Mathewson [Fri, 5 Jan 2018 16:28:23 +0000 (11:28 -0500)] 
fix a wide line

7 years agoDon't keep options in a local in run_main_loop_once.
Nick Mathewson [Fri, 5 Jan 2018 14:24:34 +0000 (09:24 -0500)] 
Don't keep options in a local in run_main_loop_once.

The options value can change between the get_options() and its
second use, based on setconf callbacks in the event loop.

7 years agoStop logging excessive information about fallback netblocks
teor [Thu, 4 Jan 2018 13:23:52 +0000 (00:23 +1100)] 
Stop logging excessive information about fallback netblocks

Implements ticket 24791

7 years agoAdjust fallback selection parameters
teor [Thu, 4 Jan 2018 13:08:11 +0000 (00:08 +1100)] 
Adjust fallback selection parameters

Avoid selecting fallbacks that change their IP addresses too often.

Select more fallbacks by ignoring the Guard flag, and allowing lower
cutoffs for the Running and V2Dir flags. Also allow a lower bandwidth,
and a higher number of fallbacks per operator (5% of the list).

Implements ticket 24785.

7 years agoUpdate dependency list for the fallback script
teor [Fri, 22 Dec 2017 12:38:37 +0000 (23:38 +1100)] 
Update dependency list for the fallback script

Comment-only change.

Implements #24711.

7 years agoMake updateFallbackDirs.py search harder for python
teor [Fri, 22 Dec 2017 10:42:59 +0000 (21:42 +1100)] 
Make updateFallbackDirs.py search harder for python

(Some OSs don't put it in /usr/bin.)

Fixes bug 24708; bugfix on 0.2.8.1-alpha.

7 years agoRevise the generateFallbackDirLine.py script to use descriptors
teor [Wed, 27 Dec 2017 02:18:05 +0000 (13:18 +1100)] 
Revise the generateFallbackDirLine.py script to use descriptors

Patch by atagar, part of #24706.