3
0
Fork 0
forked from mirrors/nixpkgs

Merge pull request #97338 from WilliButz/exporters/fix-firewall-filter

nixos/prometheus-exporters: fix default firewall filter
This commit is contained in:
Simon Waibl 2020-09-07 11:16:19 +02:00 committed by GitHub
commit b0a8a746b3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -84,7 +84,8 @@ let
};
firewallFilter = mkOption {
type = types.str;
default = "-p tcp -m tcp --dport ${toString port}";
default = "-p tcp -m tcp --dport ${toString cfg.${name}.port}";
defaultText = "-p tcp -m tcp --dport ${toString port}";
example = literalExample ''
"-i eth0 -p tcp -m tcp --dport ${toString port}"
'';