mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2025-12-28 11:00:09 +01:00
device: only remember "forwarding" sysctl the first time in _dev_ipac6_start()
Fixes:4c48301594('device: don't reset "net.ipv6.conf.$IFACE.forwarding"') (cherry picked from commit6050da93bd)
This commit is contained in:
parent
f578051b40
commit
707febe83b
1 changed files with 1 additions and 1 deletions
|
|
@ -11695,7 +11695,7 @@ _dev_ipac6_start(NMDevice *self)
|
|||
|
||||
sysctl_value = nm_device_sysctl_ip_conf_get(self, AF_INET6, "forwarding");
|
||||
if (!nm_streq0(sysctl_value, "1")) {
|
||||
if (sysctl_value) {
|
||||
if (sysctl_value && !g_hash_table_contains(priv->ip6_saved_properties, "forwarding")) {
|
||||
g_hash_table_insert(priv->ip6_saved_properties,
|
||||
"forwarding",
|
||||
g_steal_pointer(&sysctl_value));
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue