Compare commits

..

1 Commits

Author SHA1 Message Date
Jason Swank
c4d4dcd1bf wip 2026-05-17 22:59:54 -04:00

View File

@@ -17,11 +17,7 @@ func main() {
rand.Seed(time.Now().UnixNano()) rand.Seed(time.Now().UnixNano())
http.HandleFunc("/", func(w http.ResponseWriter, r *http.Request) { http.HandleFunc("/", func(w http.ResponseWriter, r *http.Request) {
// error handling for common probes log.Printf("Received request from %s, Host: %s", r.RemoteAddr, r.Host)
if r.Host == "" {
http.Error(w, "", http.StatusBadRequest)
return
}
// error handling for common probes // error handling for common probes
if r.URL.Path != "/" { if r.URL.Path != "/" {