From 6ac8203d4042d2f76dc89e388f8185b2927de49c Mon Sep 17 00:00:00 2001 From: nordicdyno Date: Fri, 10 Feb 2017 15:35:38 +0300 Subject: [PATCH] http listener: log and fail on ListenAndServe error --- main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.go b/main.go index 4242ef4..e923a35 100644 --- a/main.go +++ b/main.go @@ -52,7 +52,7 @@ func serveHTTP() { `)) }) - http.ListenAndServe(*listenAddress, nil) + log.Fatal(http.ListenAndServe(*listenAddress, nil)) } func udpAddrFromString(addr string) *net.UDPAddr {