1
0
mirror of https://github.com/pi-hole/pi-hole synced 2024-11-18 14:18:15 +00:00
pi-hole/advanced/Scripts
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
..
database_migration Add editorconfig-checker workflow 2022-07-02 09:36:52 +02:00
chronometer.sh Remove last traces 2022-09-26 22:55:34 +02:00
COL_TABLE Allows colorful debug logs via web interface 2022-03-12 02:58:46 -03:00
list.sh Do not restrict RegEx added from CLI by length 2022-07-06 19:27:33 +02:00
pihole-reenable.sh Improved explanation of why this script is needed 2020-05-30 03:14:03 +02:00
piholeARPTable.sh Replace remaining sqlite3 calls by calls to our embedded pihole-FTL sqlite3 engine and remove sqlite3 as dependency in the installer. 2022-01-30 11:18:17 +01:00
piholeCheckout.sh Update local and remote versions at the same time 2022-10-06 12:36:17 +02:00
piholeDebug.sh Revert "Allow final dot (root zone)" 2023-03-14 19:50:53 +01:00
piholeLogFlush.sh Remove read permission for others on senible log files 2022-06-19 23:09:05 +02:00
query.sh Allow limited parsing of ABP style adlists (#5179) 2023-03-14 13:23:03 -07:00
update.sh Update local and remote versions at the same time 2022-10-06 12:36:17 +02:00
updatecheck.sh Ensure local hash is always of length 8, for consistency. 2022-11-14 22:51:39 +00:00
utils.sh Fix addKey to handle substrings of existing keys 2023-03-17 11:50:52 -07:00
version.sh Get only the precise tag number when getting local version, do not show branch name when on master branch(es) 2022-11-14 20:39:34 +00:00
webpage.sh Prevent CNAME loop (#4988) 2022-10-29 15:44:03 +02:00