From 3fd2768ca02283ac5fa5bccce546151951917933 Mon Sep 17 00:00:00 2001 From: Howard Wu Date: Thu, 5 Sep 2024 13:12:02 +1200 Subject: [PATCH] fix: incorrect checking for II/SNZO --- cmd/fdsn-ws/fdsn_dataselect.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/cmd/fdsn-ws/fdsn_dataselect.go b/cmd/fdsn-ws/fdsn_dataselect.go index 7ec2cfc..9e0c979 100644 --- a/cmd/fdsn-ws/fdsn_dataselect.go +++ b/cmd/fdsn-ws/fdsn_dataselect.go @@ -188,7 +188,9 @@ func fdsnDataselectV1Handler(r *http.Request, w http.ResponseWriter) (int64, err } // We reject all queries for network not "NZ", except special case IU/SNZO. // Note: IU/SNZO won't matched by wildcard queries. - if d.Network != "IU" && d.Station != "SNZO" { + if d.Network == "^IU$" && d.Station == "^SNZO$" { + // let it pass + } else { if m, err := regexp.MatchString(d.Network, "NZ"); err != nil || !m { continue }