rrda

REST API allowing to perform DNS queries over HTTP
Log | Files | Refs | README | LICENSE

commit fcc0be24867a6f9ba3e6472de00aedb6e68bc299
parent 045127c2fb6644b075c12a97f42e13f22429d2a7
Author: Frederic Cambus <fred@statdns.com>
Date:   Fri,  3 Feb 2017 22:01:59 +0100

Do not display header when starting

Diffstat:
Mrrda.go | 4----
1 file changed, 0 insertions(+), 4 deletions(-)

diff --git a/rrda.go b/rrda.go @@ -164,20 +164,16 @@ func ptr(w http.ResponseWriter, r *http.Request) { } func main() { - header := "-------------------------------------------------------------------------------\n RRDA (RRDA REST DNS API) 1.02 (c) by Frederic Cambus 2012-2016\n-------------------------------------------------------------------------------" - fastcgi := flag.Bool("fastcgi", false, "Enable FastCGI mode") host := flag.String("host", "127.0.0.1", "Set the server host") port := flag.String("port", "8080", "Set the server port") flag.Usage = func() { - fmt.Println(header) fmt.Println("\nUSAGE:") flag.PrintDefaults() } flag.Parse() - fmt.Println(header) fmt.Println("\nListening on :", *host+":"+*port)