mirror of
https://github.com/mpolden/echoip.git
synced 2025-07-16 22:13:33 +02:00
Log if template is unreadable
This commit is contained in:
@ -308,7 +308,9 @@ func (s *Server) Handler() http.Handler {
|
||||
}
|
||||
|
||||
// Browser
|
||||
r.Route("GET", "/", s.DefaultHandler)
|
||||
if s.Template != "" {
|
||||
r.Route("GET", "/", s.DefaultHandler)
|
||||
}
|
||||
|
||||
// Port testing
|
||||
if s.LookupPort != nil {
|
||||
|
Reference in New Issue
Block a user