Skip to content

Commit

Permalink
fix: incorrect checking for IU/SNZO
Browse files Browse the repository at this point in the history
  • Loading branch information
junghao committed Sep 5, 2024
1 parent e6a9f45 commit 7589edb
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion cmd/fdsn-ws/fdsn_dataselect.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down

0 comments on commit 7589edb

Please sign in to comment.