mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-19 03:14:03 +00:00
Merge pull request #187372 from delroth/networkd-p2p-route
nixos/network-interfaces-systemd: do not ignore /0 gateway routes
This commit is contained in:
commit
c3dec21923
@ -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) {
|
||||||
|
Loading…
Reference in New Issue
Block a user