mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2025-12-24 14:50:07 +01:00
merge: branch 'here-abarany:main' into 'main'
vpn: allow IP prefix of 0 for routing rules https://gitlab.freedesktop.org/NetworkManager/NetworkManager/-/merge_requests/816
This commit is contained in:
commit
afd8563eb2
1 changed files with 2 additions and 2 deletions
|
|
@ -1632,7 +1632,7 @@ nm_vpn_connection_ip4_config_get(NMVpnConnection *self, GVariant *dict)
|
|||
route.metric = route_metric;
|
||||
route.rt_source = NM_IP_CONFIG_SOURCE_VPN;
|
||||
|
||||
if (plen > 32 || plen == 0)
|
||||
if (plen > 32)
|
||||
break;
|
||||
route.plen = plen;
|
||||
route.network = nm_utils_ip4_address_clear_host_address(route.network, plen);
|
||||
|
|
@ -1825,7 +1825,7 @@ nm_vpn_connection_ip6_config_get(NMVpnConnection *self, GVariant *dict)
|
|||
if (!ip6_addr_from_variant(dest, &route.network))
|
||||
goto next;
|
||||
|
||||
if (prefix > 128 || prefix == 0)
|
||||
if (prefix > 128)
|
||||
goto next;
|
||||
|
||||
route.plen = prefix;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue