[evolution-couchdb] Use 127.0.0.1 instead of localhost, since that resolves to :1 in machines with IPv6 enabled
- From: Rodrigo Moya <rodrigo src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [evolution-couchdb] Use 127.0.0.1 instead of localhost, since that resolves to :1 in machines with IPv6 enabled
- Date: Tue, 25 Aug 2009 15:30:01 +0000 (UTC)
commit caf9048801422f2069db6dcd109950a488b8226d
Author: Rodrigo Moya <rodrigo gnome-db org>
Date: Tue Aug 25 17:29:51 2009 +0200
Use 127.0.0.1 instead of localhost, since that resolves to :1 in machines with IPv6 enabled
addressbook/e-book-backend-couchdb.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/addressbook/e-book-backend-couchdb.c b/addressbook/e-book-backend-couchdb.c
index 454d573..5816dd5 100644
--- a/addressbook/e-book-backend-couchdb.c
+++ b/addressbook/e-book-backend-couchdb.c
@@ -639,7 +639,7 @@ e_book_backend_couchdb_load_source (EBookBackend *backend,
dbus_g_connection_unref (bus);
if (success)
- uri = g_strdup_printf ("http://localhost:%d", port);
+ uri = g_strdup_printf ("http://127.0.0.1:%d", port);
else {
g_warning ("Couldn't get port for desktopcouch: %s", error->message);
g_error_free (error);
@@ -650,7 +650,7 @@ e_book_backend_couchdb_load_source (EBookBackend *backend,
} else if (g_strcmp0 (property, "remote") == 0)
uri = g_strdup_printf ("http://%s", e_source_get_property (source, "couchdb_remote_server"));
else
- uri = g_strdup ("http://localhost:5984");
+ uri = g_strdup ("http://127.0.0.1:5984");
if (! (couchdb_backend->couchdb = couchdb_new (uri))) {
g_free (uri);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]