When using plugins like 'plugins/google.c' with no previously working
connection, DNS server is not added because it is not possible to connect to it.
This patch changes the error to a warning and adds the server anyway.
We know that upon start there's no working connection and hope server will be
reacheable in presence of one.
---
plugins/dnsproxy.c | 5 ++---
1 files changed, 2 insertions(+), 3 deletions(-)
diff --git a/plugins/dnsproxy.c b/plugins/dnsproxy.c
index c720574..993efaf 100644
--- a/plugins/dnsproxy.c
+++ b/plugins/dnsproxy.c
@@ -243,9 +243,8 @@ static struct server_data *create_server(const char
*interface,
sin.sin_addr.s_addr = inet_addr(server);
if (connect(sk, (struct sockaddr *) &sin, sizeof(sin)) < 0) {
- connman_error("Failed to connect server %s", server);
- close(sk);
- return NULL;
+ connman_warn("Failed to connect server %s"
+ " Probably there was no previously working
connection. Continuing...", server);
}
data = g_try_new0(struct server_data, 1);
--
1.6.6
_______________________________________________
connman mailing list
[email protected]
http://lists.connman.net/listinfo/connman