Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
ANON-Public
orbot
Commits
0a420797
Commit
0a420797
authored
Jan 30, 2018
by
Martin Byrenheid
Browse files
Added customized Tor config to enable local measurements
parent
5a5e3c7f
Changes
1
Hide whitespace changes
Inline
Side-by-side
orbotservice/src/main/java/org/torproject/android/service/TorService.java
View file @
0a420797
...
...
@@ -698,8 +698,20 @@ public class TorService extends Service implements TorServiceConstants, OrbotCon
processSettingsImpl
(
extraLines
);
String
torrcCustom
=
new
String
(
prefs
.
getString
(
"pref_custom_torrc"
,
""
).
getBytes
(
"US-ASCII"
));
extraLines
.
append
(
torrcCustom
).
append
(
'\n'
);
extraLines
.
append
(
"TestingTorNetwork 1"
).
append
(
'\n'
);
extraLines
.
append
(
"UseEntryGuards 0"
).
append
(
'\n'
);
extraLines
.
append
(
"HardwareAccel 1"
).
append
(
'\n'
);
extraLines
.
append
(
"Sandbox 0"
).
append
(
'\n'
);
extraLines
.
append
(
"BandwidthRate 2 GByte"
).
append
(
'\n'
);
extraLines
.
append
(
"BandwidthBurst 2 GByte"
).
append
(
'\n'
);
extraLines
.
append
(
"CountPrivateBandwidth 0"
).
append
(
'\n'
);
extraLines
.
append
(
"MaxCircuitDirtiness 604800"
).
append
(
'\n'
);
extraLines
.
append
(
"DirAuthority test000a orport=5000 no-v2 hs v3ident=80E2D2E3BD4E8A0A0FC2C44451B674DE03A910CD 141.76.45.94:7000 1C069BF080F280176EE701434087A071AC535D96"
).
append
(
'\n'
);
extraLines
.
append
(
"DirAuthority test001a orport=5001 no-v2 hs v3ident=5D027FBA04F751C66A9C097DF25EBEF320679443 141.76.45.94:7001 81894627A13281C261552DE0B76C29FBD7DACCA2"
).
append
(
'\n'
);
logNotice
(
"updating torrc custom configuration..."
);
debug
(
"torrc.custom="
+
extraLines
.
toString
());
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment