rrda

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

commit f21fbb62a8e0cc4e6a1c1b6abea7856b413a486a
parent 3ce4af7f25c2ce10fcbd280272686878e521d6d7
Author: Frederic Cambus <fred@statdns.com>
Date:   Wed, 29 Jun 2022 15:31:48 +0200

Move the "Listening on" message after successful server startup.

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

diff --git a/rrda.go b/rrda.go @@ -188,8 +188,6 @@ func main() { address := *host + ":" + *port - fmt.Println("Listening on ("+mode+" mode):", address) - r := chi.NewRouter() r.Get("/{server}/x/{ip}", ptr) r.Get("/{server}/{domain}/{querytype}", query) @@ -207,4 +205,6 @@ func main() { os.Exit(1) } } + + fmt.Println("Listening on ("+mode+" mode):", address) }