diff --git a/app/templates/index.html b/app/templates/index.html
new file mode 100644
index 0000000..3e1a5f9
--- /dev/null
+++ b/app/templates/index.html
@@ -0,0 +1,34 @@
+{{ define "title" }}Honeypot Dashboard{{ end }}
+{{ define "content" }}
+
")
- sb.WriteString(fmt.Sprintf("
", stats["total_ips"]))
- sb.WriteString(fmt.Sprintf("
", stats["blacklisted_ips"]))
- sb.WriteString(fmt.Sprintf("
", stats["total_connections"]))
- sb.WriteString(fmt.Sprintf("
", stats["total_auth_attempts"]))
- sb.WriteString("
")
+ if templates == nil {
+ if err := initTemplates(); err != nil {
+ log.Printf("template init error: %v", err)
}
-
- sb.WriteString("