1
0
mirror of https://github.com/pi-hole/pi-hole synced 2024-12-22 06:48:07 +00:00

Allow final dot (root zone)

Signed-off-by: Christian König <ckoenig@posteo.de>
This commit is contained in:
Christian König 2023-03-04 10:36:07 +01:00
parent 16385af3ef
commit 0b5da9f0da
No known key found for this signature in database

View File

@ -552,7 +552,7 @@ parseList() {
# adapted from https://stackoverflow.com/a/30007882
# supported ABP style: ||subdomain.domain.tlp^
valid_domain_pattern="([a-z0-9]([a-z0-9_-]{0,61}[a-z0-9]){0,1}\.)+[a-z0-9][a-z0-9-]{0,61}[a-z0-9]"
valid_domain_pattern="([a-z0-9]([a-z0-9_-]{0,61}[a-z0-9]){0,1}\.)+[a-z0-9][a-z0-9-]{0,61}[a-z0-9]\.?"
abp_domain_pattern="\|\|${valid_domain_pattern}\^"