Private
Public Access
1
0
Files
data-api/ntpdb/otel.go
Ask Bjørn Hansen eb5459abf3
All checks were successful
continuous-integration/drone/push Build is passing
fix(api): protocol-aware monitor filtering for multi-protocol monitors
Servers with monitor filtering returned incorrect results when monitors
have same names but different protocols (v4/v6). Monitor lookup now
considers both name and IP version to match the correct protocol.

- Add GetMonitorByNameAndIPVersion SQL query with protocol matching
- Update history parameter parsing to use server IP version context
- Fix both /scores/{ip}/log and Grafana endpoints
- Remove unused GetMonitorByName query

Fixes abh/ntppool#264
Reported-by: Anssi Johansson <https://github.com/avijc>
2025-07-27 00:37:49 -07:00

12 KiB