nixos/tor: add obfs4Package option
This commit is contained in:
@@ -456,6 +456,8 @@ in
|
|||||||
|
|
||||||
package = lib.mkPackageOption pkgs "tor" { };
|
package = lib.mkPackageOption pkgs "tor" { };
|
||||||
|
|
||||||
|
obfs4Package = lib.mkPackageOption pkgs "obfs4" { };
|
||||||
|
|
||||||
enableGeoIP =
|
enableGeoIP =
|
||||||
lib.mkEnableOption ''
|
lib.mkEnableOption ''
|
||||||
use of GeoIP databases.
|
use of GeoIP databases.
|
||||||
@@ -1253,7 +1255,7 @@ in
|
|||||||
BridgeRelay = true;
|
BridgeRelay = true;
|
||||||
ExtORPort.port = lib.mkDefault "auto";
|
ExtORPort.port = lib.mkDefault "auto";
|
||||||
ServerTransportPlugin.transports = lib.mkDefault [ "obfs4" ];
|
ServerTransportPlugin.transports = lib.mkDefault [ "obfs4" ];
|
||||||
ServerTransportPlugin.exec = lib.mkDefault "${lib.getExe pkgs.obfs4} managed";
|
ServerTransportPlugin.exec = lib.mkDefault "${lib.getExe cfg.obfs4Package} managed";
|
||||||
}
|
}
|
||||||
// lib.optionalAttrs (cfg.relay.role == "private-bridge") {
|
// lib.optionalAttrs (cfg.relay.role == "private-bridge") {
|
||||||
ExtraInfoStatistics = false;
|
ExtraInfoStatistics = false;
|
||||||
|
|||||||
Reference in New Issue
Block a user