summaryrefslogtreecommitdiff
path: root/src/nm-policy.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/nm-policy.c')
-rw-r--r--src/nm-policy.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/nm-policy.c b/src/nm-policy.c
index e520bf2cfd..61c6269ca9 100644
--- a/src/nm-policy.c
+++ b/src/nm-policy.c
@@ -134,7 +134,7 @@ get_best_ip4_device (NMManager *manager, gboolean fully_activated)
req = nm_device_get_act_request (dev);
g_assert (req);
- connection = nm_act_request_get_connection (req);
+ connection = nm_act_request_get_applied_connection (req);
g_assert (connection);
method = nm_utils_get_ip_config_method (connection, NM_TYPE_SETTING_IP4_CONFIG);
@@ -213,7 +213,7 @@ get_best_ip6_device (NMManager *manager, gboolean fully_activated)
req = nm_device_get_act_request (dev);
g_assert (req);
- connection = nm_act_request_get_connection (req);
+ connection = nm_act_request_get_applied_connection (req);
g_assert (connection);
method = nm_utils_get_ip_config_method (connection, NM_TYPE_SETTING_IP6_CONFIG);