diff options
author | tv <tv@krebsco.de> | 2023-02-03 02:40:28 +0100 |
---|---|---|
committer | tv <tv@krebsco.de> | 2023-02-03 02:40:28 +0100 |
commit | 3d3dfcbb476c5ff214aa1cbdc973481fde5856d0 (patch) | |
tree | 1a46d55a0f3892ed7173ae65c49847bf4544f270 /tv/2configs | |
parent | eee4db26e0a84e0bf0fab7895eb3eaec2946960f (diff) |
tv wiregrill: remove extra !
Diffstat (limited to 'tv/2configs')
-rw-r--r-- | tv/2configs/wiregrill.nix | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tv/2configs/wiregrill.nix b/tv/2configs/wiregrill.nix index d28a1ec..edf65e9 100644 --- a/tv/2configs/wiregrill.nix +++ b/tv/2configs/wiregrill.nix @@ -28,8 +28,8 @@ in systemd.network.networks.wiregrill = { matchConfig.Name = "wiregrill"; address = - optional (!isNull cfg.net.ip4) (toCidrNotation cfg.net.ip4) ++ - optional (!isNull cfg.net.ip6) (toCidrNotation cfg.net.ip6); + optional (cfg.net.ip4 != null) (toCidrNotation cfg.net.ip4) ++ + optional (cfg.net.ip6 != null) (toCidrNotation cfg.net.ip6); }; tv.iptables.extra.filter.INPUT = [ "-p udp --dport ${toString cfg.net.wireguard.port} -j ACCEPT" |