tor-browser-bundle: support transports obfs2,obfs3
This commit is contained in:
parent
ae4c8e0889
commit
ba689a2740
@ -36,6 +36,9 @@
|
|||||||
, python27Packages
|
, python27Packages
|
||||||
, rsync
|
, rsync
|
||||||
|
|
||||||
|
# Pluggable transports
|
||||||
|
, obfsproxy
|
||||||
|
|
||||||
# Customization
|
# Customization
|
||||||
, extraPrefs ? ""
|
, extraPrefs ? ""
|
||||||
, extraExtensions ? [ ]
|
, extraExtensions ? [ ]
|
||||||
@ -165,8 +168,14 @@ stdenv.mkDerivation rec {
|
|||||||
>> $TBDATA_PATH/torrc-defaults
|
>> $TBDATA_PATH/torrc-defaults
|
||||||
cat \
|
cat \
|
||||||
$bundleData/$bundlePlatform/Data/Browser/profile.default/preferences/extension-overrides.js \
|
$bundleData/$bundlePlatform/Data/Browser/profile.default/preferences/extension-overrides.js \
|
||||||
|
$bundleData/PTConfigs/bridge_prefs.js \
|
||||||
>> defaults/pref/extension-overrides.js
|
>> defaults/pref/extension-overrides.js
|
||||||
|
|
||||||
|
# Configure pluggable transports
|
||||||
|
cat >>$TBDATA_PATH/torrc-defaults <<EOF
|
||||||
|
ClientTransportPlugin obfs2,obfs3 exec ${obfsproxy}/bin/obfsproxy managed
|
||||||
|
EOF
|
||||||
|
|
||||||
# Hard-code path to TBB fonts; xref: FONTCONFIG_FILE in the wrapper below
|
# Hard-code path to TBB fonts; xref: FONTCONFIG_FILE in the wrapper below
|
||||||
sed $bundleData/$bundlePlatform/Data/fontconfig/fonts.conf \
|
sed $bundleData/$bundlePlatform/Data/fontconfig/fonts.conf \
|
||||||
-e "s,<dir>fonts</dir>,<dir>${fontsDir}</dir>," \
|
-e "s,<dir>fonts</dir>,<dir>${fontsDir}</dir>," \
|
||||||
|
@ -4658,6 +4658,7 @@ with pkgs;
|
|||||||
tor-browser-bundle = callPackage ../applications/networking/browsers/tor-browser-bundle {
|
tor-browser-bundle = callPackage ../applications/networking/browsers/tor-browser-bundle {
|
||||||
stdenv = stdenvNoCC;
|
stdenv = stdenvNoCC;
|
||||||
tor-browser-unwrapped = firefoxPackages.tor-browser;
|
tor-browser-unwrapped = firefoxPackages.tor-browser;
|
||||||
|
inherit (python27Packages) obfsproxy;
|
||||||
};
|
};
|
||||||
|
|
||||||
touchegg = callPackage ../tools/inputmethods/touchegg { };
|
touchegg = callPackage ../tools/inputmethods/touchegg { };
|
||||||
|
Loading…
x
Reference in New Issue
Block a user