From 1121f6a79c0a4f6f9f53ff177c0f6dc98e3b58f8 Mon Sep 17 00:00:00 2001 From: Brad Fitzpatrick Date: Sun, 18 Jul 2010 09:56:31 -0700 Subject: [PATCH] stealth mode --- blobserver/go/camlistored.go | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/blobserver/go/camlistored.go b/blobserver/go/camlistored.go index a9cd45757..1741b9622 100644 --- a/blobserver/go/camlistored.go +++ b/blobserver/go/camlistored.go @@ -28,6 +28,7 @@ import "util/util" var listen *string = flag.String("listen", "0.0.0.0:3179", "host:port to listen on") var storageRoot *string = flag.String("root", "/tmp/camliroot", "Root directory to store files") +var stealthMode *bool = flag.Bool("stealth", true, "Run in stealth mode.") var putPassword string @@ -392,9 +393,13 @@ func handlePut(conn *http.Conn, req *http.Request) { } func HandleRoot(conn *http.Conn, req *http.Request) { - fmt.Fprintf(conn, ` + if *stealthMode { + fmt.Fprintf(conn, "Hi.\n") + } else { + fmt.Fprintf(conn, ` This is camlistored, a Camlistore storage daemon. `) + } } func main() {