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