Merge pull request #187372 from delroth/networkd-p2p-route

nixos/network-interfaces-systemd: do not ignore /0 gateway routes
This commit is contained in:
Maximilian Bosch 2022-08-19 12:58:28 +02:00 committed by GitHub
commit c3dec21923
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -134,7 +134,7 @@ in
# Most of these route options have not been tested.
# Please fix or report any mistakes you may find.
routeConfig =
optionalAttrs (route.prefixLength > 0) {
optionalAttrs (route.address != null && route.prefixLength != null) {
Destination = "${route.address}/${toString route.prefixLength}";
} //
optionalAttrs (route.options ? fastopen_no_cookie) {