Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
briar
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Julian Dehm
briar
Commits
131f9b96
Verified
Commit
131f9b96
authored
5 years ago
by
akwizgran
Browse files
Options
Downloads
Patches
Plain Diff
Remove old migration code for Tor settings.
parent
edb9da10
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
bramble-core/src/main/java/org/briarproject/bramble/plugin/tor/TorPlugin.java
+0
-17
0 additions, 17 deletions
...n/java/org/briarproject/bramble/plugin/tor/TorPlugin.java
with
0 additions
and
17 deletions
bramble-core/src/main/java/org/briarproject/bramble/plugin/tor/TorPlugin.java
+
0
−
17
View file @
131f9b96
...
@@ -195,8 +195,6 @@ abstract class TorPlugin implements DuplexPlugin, EventHandler, EventListener {
...
@@ -195,8 +195,6 @@ abstract class TorPlugin implements DuplexPlugin, EventHandler, EventListener {
if
(!
assetsAreUpToDate
())
installAssets
();
if
(!
assetsAreUpToDate
())
installAssets
();
if
(
cookieFile
.
exists
()
&&
!
cookieFile
.
delete
())
if
(
cookieFile
.
exists
()
&&
!
cookieFile
.
delete
())
LOG
.
warning
(
"Old auth cookie not deleted"
);
LOG
.
warning
(
"Old auth cookie not deleted"
);
// Migrate old settings before having a chance to stop
migrateSettings
();
// Start a new Tor process
// Start a new Tor process
LOG
.
info
(
"Starting Tor"
);
LOG
.
info
(
"Starting Tor"
);
String
torPath
=
torFile
.
getAbsolutePath
();
String
torPath
=
torFile
.
getAbsolutePath
();
...
@@ -816,21 +814,6 @@ abstract class TorPlugin implements DuplexPlugin, EventHandler, EventListener {
...
@@ -816,21 +814,6 @@ abstract class TorPlugin implements DuplexPlugin, EventHandler, EventListener {
controlConnection
.
setConf
(
"ConnectionPadding"
,
enable
?
"1"
:
"0"
);
controlConnection
.
setConf
(
"ConnectionPadding"
,
enable
?
"1"
:
"0"
);
}
}
// TODO remove when sufficient time has passed. Added 2018-08-15
private
void
migrateSettings
()
{
Settings
sOld
=
callback
.
getSettings
();
int
oldNetwork
=
sOld
.
getInt
(
"network"
,
-
1
);
if
(
oldNetwork
==
-
1
)
return
;
Settings
s
=
new
Settings
();
if
(
oldNetwork
==
0
)
{
s
.
putInt
(
PREF_TOR_NETWORK
,
PREF_TOR_NETWORK_NEVER
);
}
else
if
(
oldNetwork
==
1
)
{
s
.
putBoolean
(
PREF_TOR_MOBILE
,
false
);
}
s
.
putInt
(
"network"
,
-
1
);
callback
.
mergeSettings
(
s
);
}
private
static
class
ConnectionStatus
{
private
static
class
ConnectionStatus
{
// All of the following are locking: this
// All of the following are locking: this
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment