From b4ef86145d6c5c088aac179d502cf8b636d97a28 Mon Sep 17 00:00:00 2001 From: Barak Michener Date: Wed, 20 Aug 2014 15:56:36 -0400 Subject: [PATCH] Switch default to localhost. Fixes #107 --- config/config.go | 2 +- docs/Configuration.md | 2 +- docs/Overview.md | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/config/config.go b/config/config.go index ff06e7c..26b68ac 100644 --- a/config/config.go +++ b/config/config.go @@ -126,7 +126,7 @@ var ( databasePath = flag.String("dbpath", "/tmp/testdb", "Path to the database.") databaseBackend = flag.String("db", "memstore", "Database Backend.") replicationBackend = flag.String("replication", "single", "Replication method.") - host = flag.String("host", "0.0.0.0", "Host to listen on (defaults to all).") + host = flag.String("host", "127.0.0.1", "Host to listen on (defaults to all).") loadSize = flag.Int("load_size", 10000, "Size of triplesets to load") port = flag.String("port", "64210", "Port to listen on.") readOnly = flag.Bool("read_only", false, "Disable writing via HTTP.") diff --git a/docs/Configuration.md b/docs/Configuration.md index b464adb..4b6b898 100644 --- a/docs/Configuration.md +++ b/docs/Configuration.md @@ -39,7 +39,7 @@ All command line flags take precedence over the configuration file. #### **`listen_host`** * Type: String - * Default: "0.0.0.0" + * Default: "127.0.0.1" The hostname or IP address for Cayley's HTTP server to listen on. Defaults to all interfaces. diff --git a/docs/Overview.md b/docs/Overview.md index cea43c6..300d005 100644 --- a/docs/Overview.md +++ b/docs/Overview.md @@ -62,7 +62,7 @@ Just as before: And you'll see a message not unlike ```bash -Cayley now listening on 0.0.0.0:64210 +Cayley now listening on 127.0.0.1:64210 ``` If you visit that address (often, [http://localhost:64210](http://localhost:64210)) you'll see the full web interface and also have a graph ready to serve queries via the [HTTP API](/docs/HTTP.md)