DL6ER
|
140a365806
|
Tests: Set api.pwhash and dns.blocking.mode using PATCH /api/config
Signed-off-by: DL6ER <dl6er@dl6er.de>
|
2023-01-08 21:29:55 +01:00 |
|
DL6ER
|
f199ac2f08
|
Automatically migrate the API password hash and the lists of clients and domains to be excluded from setupVars.conf
Signed-off-by: DL6ER <dl6er@dl6er.de>
|
2023-01-08 21:21:38 +01:00 |
|
DL6ER
|
448550fd9a
|
Add PATCH /config which allows modifying all FTL config values. Changed values go into effect *immediately* and the config file is updated.
Signed-off-by: DL6ER <dl6er@dl6er.de>
|
2023-01-08 20:55:31 +01:00 |
|
DL6ER
|
a9e93ba1f8
|
Calculate percentage of blocked queries only of there is at least one blocked query to prevent division-by-zero issues (leading to None)
Signed-off-by: DL6ER <dl6er@dl6er.de>
|
2023-01-08 19:04:31 +01:00 |
|
DL6ER
|
4ac52263e9
|
Implement login for python API checking script
Signed-off-by: DL6ER <dl6er@dl6er.de>
|
2023-01-08 16:04:26 +01:00 |
|
DL6ER
|
27b4a6d805
|
Ensure dhcp-discover and regex-test do not overwrite the config file after parsing
Signed-off-by: DL6ER <dl6er@dl6er.de>
|
2023-01-08 15:06:11 +01:00 |
|
DL6ER
|
3c5c1d52b7
|
Transform log_debug() into a function-like macro to save some time when we are not in debugging mode (the function is not called in this case)
Signed-off-by: DL6ER <dl6er@dl6er.de>
|
2023-01-08 09:55:51 +01:00 |
|
DL6ER
|
b8354c515c
|
Fix debug flag parsing after changing from bit-wise flags to individual bools
Signed-off-by: DL6ER <dl6er@dl6er.de>
|
2023-01-07 20:08:38 +01:00 |
|
DL6ER
|
e145d20d28
|
Rewrite the entire config-related code to allow for changing data without having to restart. Hereby, we greatly reduce code duplication in the TOML routines so we won't have to touch tme in the future when adding additional options.
Signed-off-by: DL6ER <dl6er@dl6er.de>
|
2023-01-07 18:06:41 +01:00 |
|
DL6ER
|
32279e0765
|
Also rename config options in test pihole-FTL.toml
Signed-off-by: DL6ER <dl6er@dl6er.de>
|
2023-01-02 20:08:45 +01:00 |
|
DL6ER
|
3389b1f0c2
|
Add /api/ftl/config which can be used to retrieve the entire configuration of FTL. This endpoint only supports GET so far, however, we will add POST in the future so that configuration values can be changed through the API
Signed-off-by: DL6ER <dl6er@dl6er.de>
|
2023-01-01 18:19:36 +01:00 |
|
DL6ER
|
5d0559a5cb
|
Warn if invalid IPv4/IPv6 addresses are specified in the config file
Signed-off-by: DL6ER <dl6er@dl6er.de>
|
2022-07-17 13:02:10 +02:00 |
|
DL6ER
|
26ccee3f4c
|
Merge branch 'development' into new/http
Signed-off-by: DL6ER <dl6er@dl6er.de>
|
2022-06-29 11:12:59 +02:00 |
|
DL6ER
|
6440cada53
|
TOML: Move check into [misc]
Signed-off-by: DL6ER <dl6er@dl6er.de>
|
2021-12-31 01:16:37 +01:00 |
|
DL6ER
|
1b43a44d42
|
Merge branch 'development' into new/http
Signed-off-by: DL6ER <dl6er@dl6er.de>
|
2021-12-14 10:21:54 +01:00 |
|
DL6ER
|
7dbe1a09eb
|
Static analysis improvements
Signed-off-by: DL6ER <dl6er@dl6er.de>
|
2021-11-03 16:14:31 +01:00 |
|
DL6ER
|
c0570c51c2
|
Merge branch 'development' into new/http
Signed-off-by: DL6ER <dl6er@dl6er.de>
|
2021-11-02 09:53:13 +01:00 |
|
DL6ER
|
edc1583369
|
Fix two incorrect search-and-replace
Signed-off-by: DL6ER <dl6er@dl6er.de>
|
2021-07-14 20:43:32 +02:00 |
|
DL6ER
|
7b2770e7f6
|
Merge branch 'release/v5.9' into new/http
Signed-off-by: DL6ER <dl6er@dl6er.de>
|
2021-07-13 17:04:16 +02:00 |
|
DL6ER
|
e290e10c51
|
Use POSIX interfaces get/setpriority() instead of nice()
Signed-off-by: DL6ER <dl6er@dl6er.de>
|
2021-06-11 10:05:07 +02:00 |
|
DL6ER
|
018dc6788c
|
Report debug setting if enabled
Signed-off-by: DL6ER <dl6er@dl6er.de>
|
2021-06-10 12:30:02 +02:00 |
|
DL6ER
|
55bf825a81
|
Implement TOML config file reader/writer and a converter of the pre-v6.0 config file format.
Signed-off-by: DL6ER <dl6er@dl6er.de>
|
2021-06-10 12:11:25 +02:00 |
|