1
0
mirror of https://github.com/pi-hole/pi-hole synced 2024-11-18 14:18:15 +00:00
pi-hole/advanced
William Blew b9a6970bfd
Fix addKey to handle substrings of existing keys
Fix addKey to handle the case where a key is being added, and that key
is the leading substring of an already existing key within that file.

For example: add "server=192.168.1.1", when "server=192.168.1.178"
already exists within the /etc/dnsmasq.d/01-pihole.conf file.

Check pihole docker with PIHOLE_DNS="192.168.1.178;192.168.1.1". Its
/etc/dnsmasq/01-pihole.conf will be missing its second server= entry.

Add the test_key_addition_substr, to test addKey when
its adding a substring key of an existing key in the file.

Signed-off-by: William Blew <william@kulian.org>
2023-03-17 11:50:52 -07:00
..
bash-completion Remove the email function 2022-08-17 23:14:56 +02:00
Scripts Fix addKey to handle substrings of existing keys 2023-03-17 11:50:52 -07:00
Templates Apply suggestions from code review 2023-01-03 21:20:22 +01:00
01-pihole.conf Use utils.sh in install script 2022-08-24 08:49:20 +02:00
06-rfc6761.conf Fix documentation; add some missing zones 2021-10-28 12:09:34 +02:00
dnsmasq.conf.original Adds spellcheck action to the smoke-tests (also moves editorconfig-checker to smoketests away from it's own action) 2022-07-02 14:04:08 +01:00
lighttpd.conf.debian Tweak old pihole lighttpd config warning message to better reflect the consequences of making changes to the file 2023-02-01 17:38:21 +00:00
lighttpd.conf.fedora Tweak old pihole lighttpd config warning message to better reflect the consequences of making changes to the file 2023-02-01 17:38:21 +00:00
pihole-admin.conf Change min_procs value to 1 2023-01-25 14:35:57 -03:00