PCNameFix
All checks were successful
release-tag / release-image (push) Successful in 1m52s

This commit is contained in:
2025-05-09 11:10:23 +02:00
parent a9fb624e94
commit 33e99a7533

View File

@@ -141,9 +141,13 @@ func handleRange(w http.ResponseWriter, r *http.Request) {
O4 := ""
if len(octets[2]) < 2 {
O3 = "0" + octets[2]
} else {
O3 = octets[2]
}
if len(octets[3]) < 2 {
O3 = "0" + octets[3]
} else {
O3 = octets[3]
}
N := "PC" + O3 + O4
d.Rows = append(d.Rows, addrPair{IPv4: b.IPv4, IPv6: b.IPv6, Name: N})