about summary refs log tree commit diff
path: root/nixos/modules
diff options
context:
space:
mode:
authorWill Fancher <elvishjerricco@gmail.com>2024-03-17 12:36:30 -0700
committerGitHub <noreply@github.com>2024-03-17 12:36:30 -0700
commit486e837cbec02d12f96e491b9721177edbf40e7e (patch)
treef5fd421a06c898cce6da245b18fa451b434c4a43 /nixos/modules
parentfc7885fbcea4b782142e06ce2d4d08cf92862004 (diff)
parentf753e58e6ec33dc93e8e319c03bad049d9b5a5b4 (diff)
downloadnixlib-486e837cbec02d12f96e491b9721177edbf40e7e.tar
nixlib-486e837cbec02d12f96e491b9721177edbf40e7e.tar.gz
nixlib-486e837cbec02d12f96e491b9721177edbf40e7e.tar.bz2
nixlib-486e837cbec02d12f96e491b9721177edbf40e7e.tar.lz
nixlib-486e837cbec02d12f96e491b9721177edbf40e7e.tar.xz
nixlib-486e837cbec02d12f96e491b9721177edbf40e7e.tar.zst
nixlib-486e837cbec02d12f96e491b9721177edbf40e7e.zip
Merge pull request #293710 from B4dM4n/networkd-policy-rule-port-range
nixos/networkd: allow RoutingPolicyRule port ranges
Diffstat (limited to 'nixos/modules')
-rw-r--r--nixos/modules/system/boot/networkd.nix4
1 files changed, 2 insertions, 2 deletions
diff --git a/nixos/modules/system/boot/networkd.nix b/nixos/modules/system/boot/networkd.nix
index b6b0f64b94c8..9b0d750d12ce 100644
--- a/nixos/modules/system/boot/networkd.nix
+++ b/nixos/modules/system/boot/networkd.nix
@@ -729,8 +729,8 @@ let
         (assertInt "FirewallMark")
         (assertRange "FirewallMark" 1 4294967295)
         (assertInt "Priority")
-        (assertPort "SourcePort")
-        (assertPort "DestinationPort")
+        (assertPortOrPortRange "SourcePort")
+        (assertPortOrPortRange "DestinationPort")
         (assertValueOneOf "InvertRule" boolValues)
         (assertValueOneOf "Family" ["ipv4" "ipv6" "both"])
         (assertInt "SuppressPrefixLength")