fix sonar

This commit is contained in:
bcmmbaga
2026-08-14 19:39:54 +03:00
parent fab720db5f
commit 6d9543661f

View File

@@ -250,7 +250,8 @@ dsn_host() {
# reach the enricher rather than Postgres. Only flag hosts we can positively
# identify — an unparseable DSN must not leave the operator with no way forward.
dsn_host_reachable() {
case "$(dsn_host "$1")" in
local dsn="$1"
case "$(dsn_host "$dsn")" in
localhost | 127.* | ::1 | 0.0.0.0 | /*) return 1 ;;
*) return 0 ;;
esac