Private
Public Access
1
0
Ask Bjørn Hansen 9c6b8d1867 fix(api): handle score monitors in name-based lookups
Score monitors have type='score' and ip_version=NULL, but the
GetMonitorByNameAndIPVersion query required ip_version to match.
This broke monitor lookups by name for score monitors.

Modified query to match either:
- Regular monitors with specified ip_version
- Score monitors with NULL ip_version

Fixes issue reported by Ben Harris at:
https://community.ntppool.org/t/monitor-recentmedian-no-longer-works/4002
2025-08-04 20:43:53 -07:00
2023-11-21 12:24:02 -08:00
wip
2023-05-07 00:01:00 -07:00
2025-03-08 10:21:44 -08:00
2023-07-08 22:09:31 -07:00
2024-12-27 17:38:58 -08:00
2025-01-17 21:03:31 -08:00
2025-08-02 19:48:42 -07:00
2025-08-02 19:48:42 -07:00
2023-04-18 21:54:54 -07:00
wip
2023-05-07 00:01:00 -07:00
2025-08-02 19:48:42 -07:00
2023-12-10 21:02:04 -08:00
Description
No description provided
MIT 449 KiB
Languages
Go 98.5%
Shell 0.7%
Dockerfile 0.5%
Makefile 0.3%