about summary refs log tree commit diff
path: root/src/core/nm-checkpoint.c
diff options
context:
space:
mode:
authorMichael Biebl <biebl@debian.org>2022-03-07 21:31:48 +0100
committerMichael Biebl <biebl@debian.org>2022-03-07 21:31:48 +0100
commitb002c8cf4a4edaf7067563fc1d59545b5c88cc99 (patch)
tree6818612f86964c1dd79bb373feb4f443eeb2dd69 /src/core/nm-checkpoint.c
parenta31332e76bee4c5977e2ef9daeeddb205bad27ea (diff)
parent4f887bccf1cde84106588536584a2d54a5b4e6e5 (diff)
Update upstream source from tag 'upstream/1.36.2'
Update to upstream version '1.36.2'
with Debian dir ababed5cf88a964e7aac789b48238ba3cf57f0b4
Diffstat (limited to 'src/core/nm-checkpoint.c')
-rw-r--r--src/core/nm-checkpoint.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/core/nm-checkpoint.c b/src/core/nm-checkpoint.c
index 0153af97..5b48f91a 100644
--- a/src/core/nm-checkpoint.c
+++ b/src/core/nm-checkpoint.c
@@ -282,6 +282,11 @@ restore_and_activate_connection(NMCheckpoint *self, DeviceCheckpoint *dev_checkp
          * an internal subject. */
         if (nm_device_get_state(dev_checkpoint->device) > NM_DEVICE_STATE_DISCONNECTED
             && nm_device_get_state(dev_checkpoint->device) < NM_DEVICE_STATE_DEACTIVATING) {
+            if (!NM_FLAGS_HAS(priv->flags, NM_CHECKPOINT_CREATE_FLAG_NO_PRESERVE_EXTERNAL_PORTS)) {
+                nm_device_activation_state_set_preserve_external_ports(dev_checkpoint->device,
+                                                                       TRUE);
+            }
+
             nm_device_state_changed(dev_checkpoint->device,
                                     NM_DEVICE_STATE_DEACTIVATING,
                                     NM_DEVICE_STATE_REASON_NEW_ACTIVATION);