Bugfix Doppelte Einträge
All checks were successful
release-tag / release-image (push) Successful in 1m56s

This commit is contained in:
2025-05-09 10:53:06 +02:00
parent 99a9beb065
commit cc7c8d8b9b

View File

@@ -130,8 +130,6 @@ func handleRange(w http.ResponseWriter, r *http.Request) {
d.Error = err.Error()
} else {
d.HaveResult = true
d.Rows = rows
}
for a, b := range rows {
fmt.Println(a, b)
octets := strings.Split(b.IPv4, ".")
@@ -142,6 +140,8 @@ func handleRange(w http.ResponseWriter, r *http.Request) {
N := "PC" + octets[2] + octets[3]
d.Rows = append(d.Rows, addrPair{IPv4: b.IPv4, IPv6: b.IPv6, Name: N})
}
}
renderRange(w, d)
default:
http.Error(w, "Method not allowed", http.StatusMethodNotAllowed)