[couchdb-glib] Use 127.0.0.1 instead of localhost for local couchdb instances



commit 8260fa6cfce9776c6636221fc0d9f7d16e71a39a
Author: Rodrigo Moya <rodrigo gnome-db org>
Date:   Tue Sep 22 00:34:56 2009 +0200

    Use 127.0.0.1 instead of localhost for local couchdb instances

 couchdb-glib/couchdb.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/couchdb-glib/couchdb.c b/couchdb-glib/couchdb.c
index d5a0367..84aec50 100644
--- a/couchdb-glib/couchdb.c
+++ b/couchdb-glib/couchdb.c
@@ -131,7 +131,7 @@ couchdb_new (const char *hostname)
 	CouchDB *couchdb;
 
 	couchdb = g_object_new (COUCHDB_TYPE, NULL);
-	couchdb->hostname = hostname ? g_strdup (hostname) : g_strdup ("http://localhost:5984";);
+	couchdb->hostname = hostname ? g_strdup (hostname) : g_strdup ("http://127.0.0.1:5984";);
 	couchdb->http_session = soup_session_sync_new_with_options (
 		SOUP_SESSION_ADD_FEATURE_BY_TYPE, SOUP_TYPE_GNOME_FEATURES_2_26,
                 NULL);



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]