tv wiregrill: remove extra !

This commit is contained in:
tv 2023-02-03 02:40:28 +01:00
parent 3c1a1f0f09
commit 5156185782

View File

@ -28,8 +28,8 @@ in
systemd.network.networks.wiregrill = { systemd.network.networks.wiregrill = {
matchConfig.Name = "wiregrill"; matchConfig.Name = "wiregrill";
address = address =
optional (!isNull cfg.net.ip4) (toCidrNotation cfg.net.ip4) ++ optional (cfg.net.ip4 != null) (toCidrNotation cfg.net.ip4) ++
optional (!isNull cfg.net.ip6) (toCidrNotation cfg.net.ip6); optional (cfg.net.ip6 != null) (toCidrNotation cfg.net.ip6);
}; };
tv.iptables.extra.filter.INPUT = [ tv.iptables.extra.filter.INPUT = [
"-p udp --dport ${toString cfg.net.wireguard.port} -j ACCEPT" "-p udp --dport ${toString cfg.net.wireguard.port} -j ACCEPT"