Commit Graph

18 Commits (master)

Author SHA1 Message Date
Adam Warner 58275ecd13
Revert "Ignore commented lines when reading PRIVACYLEVEL from config file"
1 year ago
Dan Schaper fb032ea6e7
Ignore commented lines when reading PRIVACYLEVEL from config file (#5177)
1 year ago
William Blew b9a6970bfd
Fix addKey to handle substrings of existing keys
1 year ago
Christian König 4fd0f15d90
Ignore commented lines when reding PRIVACYLEVEL from config file
1 year ago
Christian König 276c480f50
Return default port if non-numeric characters are set in pihole-FTL.conf for FTLPORT. FTL does the same in such case and provide the API on 4711
2 years ago
Christian König 3d01e4d0cf No detour - use pihole-FTL.conf to get the API port number
2 years ago
Christian König 0df38cd64e
Format all /test files with black
2 years ago
Christian König ab6b37bdcf
Fix stickler and codefactor complaints
2 years ago
Christian König c8c4eb59b7
Add getFTLPID() tests
2 years ago
Christian König 2651abbe6c
Add tests
2 years ago
Christian König 7b77d991df
Move FTL port and PID functions to utils.sh
2 years ago
Adam Warner 8de814ab34
Split the tests, too. Enhance the descriptions
2 years ago
Adam Warner db116971ce
I tried to do too many things in one function, vastly overcomplicating what should have been _this_ all along
2 years ago
Adam Warner 4d31d5ee11
Address review comments
2 years ago
Adam Warner 7fa8cdd03e
Address:
2 years ago
Adam Warner 48138d32b6
Adjust addOrEditKeyValPair to optionally take two or three arguments (adjust test to suit)
2 years ago
Christian König 42424b515b Add getFTLAPIPort function
2 years ago
Adam Warner 77e5121d43
Split new function out into a separte utility script and add a test for it. Can be used in future to organise re/commonly-used code
2 years ago