summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorDenys Fedoryshchenko <denys.f@collabora.com>2026-05-13 22:44:13 +0300
committerDenys Fedoryshchenko <denys.f@collabora.com>2026-05-14 10:04:56 +0300
commitd5a0c7da380ff2efc359b939ac9abd5ffc10df69 (patch)
tree8f577ff0bddf26ad89d5fb9dfcef2e5ff41fd5f1 /tests
parentec10b09d60f2f2e5cd20f4c934791fe71e9be265 (diff)
downloadaccel-ppp-d5a0c7da380ff2efc359b939ac9abd5ffc10df69.tar.gz
accel-ppp-d5a0c7da380ff2efc359b939ac9abd5ffc10df69.zip
metrics: gate listener with allowed_ips ACL
Parse the `allowed_ips` option in [metrics] as a comma-separated list of IPv4 CIDR entries. Both the bracketed form allowed_ips = ["1.2.3.4/32", "5.6.7.0/24"] and a bare comma-separated form are accepted; surrounding whitespace, matched quotes, and the optional [ ] are stripped. A bare address without a prefix is treated as /32. When the list is empty (option missing or empty value), all peers are allowed and behavior is unchanged. Otherwise serv_read() rejects any peer that doesn't match a configured CIDR by closing the freshly accepted socket before allocating client state, so scanners get nothing more than a TCP reset. Signed-off-by: Denys Fedoryshchenko <denys.f@collabora.com>
Diffstat (limited to 'tests')
0 files changed, 0 insertions, 0 deletions