Do timeserver synchronization when either of the service IP
configurations have changed. As the timeservers may be expressed
by host name, it is a good idea to redo the IP name resolution
at this point.

Reported by Olivier Pinel and Adam Moore
---
 src/service.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/src/service.c b/src/service.c
index 7243ea2..101c238 100644
--- a/src/service.c
+++ b/src/service.c
@@ -5735,6 +5735,8 @@ int __connman_service_ipconfig_indicate_state(struct 
connman_service *service,
                        is_connected_state(service, new_state))
                nameserver_add_all(service);
 
+       __connman_timeserver_sync(service);
+
        return service_indicate_state(service);
 }
 
-- 
2.1.4

_______________________________________________
connman mailing list
connman@connman.net
https://lists.connman.net/mailman/listinfo/connman

Reply via email to