http listener: log and fail on ListenAndServe error

This commit is contained in:
nordicdyno 2017-02-10 15:35:38 +03:00
parent 5a9d2f996a
commit 6ac8203d40

View file

@ -52,7 +52,7 @@ func serveHTTP() {
</body>
</html>`))
})
http.ListenAndServe(*listenAddress, nil)
log.Fatal(http.ListenAndServe(*listenAddress, nil))
}
func udpAddrFromString(addr string) *net.UDPAddr {