We need to call default_changed function for ONLINE state after
profile changed, else get_default function will return the previous
service, this will lead to we have wrong DNS after VPN connection
---
src/service.c | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
diff --git a/src/service.c b/src/service.c
index 81c4f60..f5312b5 100644
--- a/src/service.c
+++ b/src/service.c
@@ -3535,8 +3535,6 @@ static int __connman_service_indicate_state(struct
connman_service *service)
}
connman_timeserver_sync();
-
- default_changed();
}
if (new_state == CONNMAN_SERVICE_STATE_IDLE) {
@@ -3629,6 +3627,9 @@ static int __connman_service_indicate_state(struct
connman_service *service)
__connman_profile_changed(FALSE);
+ if (new_state == CONNMAN_SERVICE_STATE_ONLINE)
+ default_changed();
+
return 0;
}
--
1.7.2.2
_______________________________________________
connman mailing list
[email protected]
http://lists.connman.net/listinfo/connman