diff options
author | Joachim Fasting <joachifm@fastmail.fm> | 2017-09-30 15:57:09 +0200 |
---|---|---|
committer | Joachim Fasting <joachifm@fastmail.fm> | 2017-10-03 02:42:48 +0200 |
commit | f4f594e3597b2938fead465025fc1655295a47d6 (patch) | |
tree | 95e16c7e5a6bf0928592359c49ae908b0df71426 /pkgs | |
parent | ba689a2740d47636245451a34de50a2f59d890ba (diff) | |
download | nixlib-f4f594e3597b2938fead465025fc1655295a47d6.tar nixlib-f4f594e3597b2938fead465025fc1655295a47d6.tar.gz nixlib-f4f594e3597b2938fead465025fc1655295a47d6.tar.bz2 nixlib-f4f594e3597b2938fead465025fc1655295a47d6.tar.lz nixlib-f4f594e3597b2938fead465025fc1655295a47d6.tar.xz nixlib-f4f594e3597b2938fead465025fc1655295a47d6.tar.zst nixlib-f4f594e3597b2938fead465025fc1655295a47d6.zip |
tor-browser-bundle: geoip support
Diffstat (limited to 'pkgs')
-rw-r--r-- | pkgs/applications/networking/browsers/tor-browser-bundle/default.nix | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/pkgs/applications/networking/browsers/tor-browser-bundle/default.nix b/pkgs/applications/networking/browsers/tor-browser-bundle/default.nix index ddec26e9833b..508ab6ec432e 100644 --- a/pkgs/applications/networking/browsers/tor-browser-bundle/default.nix +++ b/pkgs/applications/networking/browsers/tor-browser-bundle/default.nix @@ -171,6 +171,19 @@ stdenv.mkDerivation rec { $bundleData/PTConfigs/bridge_prefs.js \ >> defaults/pref/extension-overrides.js + # Configure geoip + # + # tor-launcher insists on resolving geoip data relative to torrc-defaults + # (and passes them directly on the tor command-line). + # + # Write the paths into torrc-defaults anyway, otherwise they'll be + # captured in the runtime torrc. + ln -s -t $TBDATA_PATH ${tor.geoip}/share/tor/geoip{,6} + cat >>$TBDATA_PATH/torrc-defaults <<EOF + GeoIPFile $TBDATA_IN_STORE/geoip + GeoIPv6File $TBDATA_IN_STORE/geoip6 + EOF + # Configure pluggable transports cat >>$TBDATA_PATH/torrc-defaults <<EOF ClientTransportPlugin obfs2,obfs3 exec ${obfsproxy}/bin/obfsproxy managed |