DL6ER
|
92ec8e8d70
|
Update civetweb v1.12 -> v1.13 (and simplify auth-cookie handling)
Signed-off-by: DL6ER <dl6er@dl6er.de>
|
2020-11-06 12:59:01 +01:00 |
|
DL6ER
|
2e8e7d1feb
|
Add more API debugging output
Signed-off-by: DL6ER <dl6er@dl6er.de>
|
2020-10-27 19:57:22 +01:00 |
|
DL6ER
|
0abcc246a5
|
Merge branch 'development' into new/http-ph7
Signed-off-by: DL6ER <dl6er@dl6er.de>
|
2020-10-26 12:38:55 +01:00 |
|
DL6ER
|
cadb13d35c
|
Add real-time signal 4 to re-resolve all host names (clients + upstream servers)
Signed-off-by: DL6ER <dl6er@dl6er.de>
|
2020-09-21 23:00:01 +02:00 |
|
DL6ER
|
4883037816
|
Merge pull request #881 from pi-hole/tweak/event_queue
Add event queue for signal handling
|
2020-09-21 22:57:08 +02:00 |
|
DL6ER
|
3bb0fe98be
|
Fix subdirectory include paths. This is only to be explicit, the relative search finds them otherwise as well
Signed-off-by: DL6ER <dl6er@dl6er.de>
|
2020-09-03 20:46:01 +02:00 |
|
DL6ER
|
46ac93353e
|
Add explicit event queue to avoid possible race collisions when many signals arrive at the same time (or very very close to each other)
Signed-off-by: DL6ER <dl6er@dl6er.de>
|
2020-09-03 20:45:59 +02:00 |
|
DL6ER
|
c889d47f17
|
Improve API filtering for domains
Signed-off-by: DL6ER <dl6er@dl6er.de>
|
2020-08-30 21:38:00 +02:00 |
|
DL6ER
|
91b9c96fc2
|
Extend domain filtering to also check the CNAME domain for domain-filtering (if this is indicated by the query status)
Signed-off-by: DL6ER <dl6er@dl6er.de>
|
2020-08-30 21:33:31 +02:00 |
|
DL6ER
|
aa0a33adae
|
Merge pull request #856 from pi-hole/new/query_log_blocked_client_filtering
Add ability to show only blocked queries for a specific client
|
2020-08-15 13:05:19 +02:00 |
|
DL6ER
|
d55d5b14bb
|
Explicitly case time_t to (long long) before printing to address the musl-decision to make time_t 64 bit on 32 bit machines
Signed-off-by: DL6ER <dl6er@dl6er.de>
|
2020-08-12 22:03:24 +02:00 |
|
DL6ER
|
a4041a97b3
|
Fix API computation error introduced in e0609f14eee7903bca93020371576dad0ca93338
Signed-off-by: DL6ER <dl6er@dl6er.de>
|
2020-08-10 23:54:05 +02:00 |
|
DL6ER
|
68435f83d4
|
Make querytype string available everywhere in FTL.
Signed-off-by: DL6ER <dl6er@dl6er.de>
|
2020-08-10 23:47:13 +02:00 |
|
DL6ER
|
3a4d8e2e0d
|
Add ;querytype=AAAA option
Signed-off-by: DL6ER <dl6er@dl6er.de>
|
2020-08-10 23:43:02 +02:00 |
|
DL6ER
|
5062c5032e
|
All queries: Hide UNKNOWN queries when not requesting both query status types
Signed-off-by: DL6ER <dl6er@dl6er.de>
|
2020-08-02 20:06:54 +02:00 |
|
DL6ER
|
dd927b586e
|
Tweak revert commit. We should add the port after configuring it and independtly from opening IPv4 and/or IPv6 sockets. Also, we cannot delete the port in close_telnet_port() as this function is called by TCP workers since v5.1 so we'd loose the port file when the first TCP query comes in.
Signed-off-by: DL6ER <dl6er@dl6er.de>
|
2020-07-17 10:06:48 +02:00 |
|
Dan Schaper
|
98b5e33678
|
Revert "Remove portfile not used by the current web interface any longer."
This reverts commit af9107a338.
|
2020-07-16 11:02:32 -07:00 |
|
DL6ER
|
ee578627a9
|
Remove privacy level 4. Systems currently running level 4 will automatically pick up the highest available level (which is now 3). Also tidy up enums into a dedicated file.
Signed-off-by: DL6ER <dl6er@dl6er.de>
|
2020-07-08 23:48:05 +02:00 |
|
DL6ER
|
6c95bca6a2
|
Merge branch 'development' into release/v5.1
Signed-off-by: DL6ER <dl6er@dl6er.de>
|
2020-07-06 08:37:45 +02:00 |
|
DL6ER
|
747ee770b1
|
Children inherit file descriptors from their parents. As we don't need the API sockets in the forks, we clean them up after forking
Signed-off-by: DL6ER <dl6er@dl6er.de>
|
2020-06-28 21:18:23 +02:00 |
|
DL6ER
|
bad4914a87
|
Don't use fshort-enums as it may make objects files incompatible.
Signed-off-by: DL6ER <dl6er@dl6er.de>
|
2020-06-28 20:19:11 +02:00 |
|
DL6ER
|
6941f0cfb7
|
Add support for additional query types: "A", "AAAA", "ANY", "SRV", "SOA", "PTR", "TXT", "NAPTR", "MX", "DS", "RRSIG", "DNSKEY" and "OTHER" (summing up all other possible DNS types)
Signed-off-by: DL6ER <dl6er@dl6er.de>
|
2020-06-28 19:58:15 +02:00 |
|
DL6ER
|
af9107a338
|
Remove portfile not used by the current web interface any longer.
Signed-off-by: DL6ER <dl6er@dl6er.de>
|
2020-06-27 13:36:38 +02:00 |
|
DL6ER
|
85bc53cbd1
|
Bind to socket in thread instead of main process to ensure forks do not inherit sockets they shouldn't.
Signed-off-by: DL6ER <dl6er@dl6er.de>
|
2020-06-26 10:54:44 +02:00 |
|
DL6ER
|
3f918fec95
|
Move the API from http://pi.hole:8080/admin/api to http://pi.hole:8080/api
Signed-off-by: DL6ER <dl6er@dl6er.de>
|
2020-06-17 23:29:22 +02:00 |
|
DL6ER
|
5375ea0a62
|
Return null for domain comment if this is what is stored in the database.
Signed-off-by: DL6ER <dl6er@dl6er.de>
|
2020-06-17 23:18:34 +02:00 |
|
DL6ER
|
12112396f0
|
Delete running blocking status timer when requesting the same blocking mode as already active.
Signed-off-by: DL6ER <dl6er@dl6er.de>
|
2020-06-17 23:17:45 +02:00 |
|
DL6ER
|
ff4b2bcfef
|
Zero-initialize memory on the stack to avoid picking up outdated content
Signed-off-by: DL6ER <dl6er@dl6er.de>
|
2020-06-17 21:50:34 +02:00 |
|
DL6ER
|
a292c8f67f
|
Improve database statistics endpoint
Signed-off-by: DL6ER <dl6er@dl6er.de>
|
2020-06-17 20:07:31 +02:00 |
|
DL6ER
|
49dc3bfda0
|
Simplify request variable extraction
Signed-off-by: DL6ER <dl6er@dl6er.de>
|
2020-06-17 20:07:31 +02:00 |
|
DL6ER
|
aa3f7443f9
|
Ensure we use the same reply type in /api/stats/summary as in /api/dns/status
Signed-off-by: DL6ER <dl6er@dl6er.de>
|
2020-06-17 20:07:31 +02:00 |
|
DL6ER
|
b5e965e248
|
Improve /api/version endpoint.
Signed-off-by: DL6ER <dl6er@dl6er.de>
|
2020-06-17 20:07:31 +02:00 |
|
DL6ER
|
822f8c6a28
|
Implement proper error handling for network table IP address sub-query
Signed-off-by: DL6ER <dl6er@dl6er.de>
|
2020-06-17 20:07:31 +02:00 |
|
DL6ER
|
ae035c4ba7
|
Put FIFO log into its own unit (out of the API code)
Signed-off-by: DL6ER <dl6er@dl6er.de>
|
2020-06-17 20:07:31 +02:00 |
|
DL6ER
|
3906490958
|
Return SQL error to user if sourcing data from the network table fails
Signed-off-by: DL6ER <dl6er@dl6er.de>
|
2020-06-17 20:07:31 +02:00 |
|
DL6ER
|
e10d7fe27e
|
Avoid buffer overflow.
Signed-off-by: DL6ER <dl6er@dl6er.de>
|
2020-06-17 20:07:31 +02:00 |
|
DL6ER
|
e018146faa
|
Rename /api/ftl/clientIP to /api/ftl/client as we return more data than just the IP address (this is mostly a testing endpoint)
Signed-off-by: DL6ER <dl6er@dl6er.de>
|
2020-06-17 20:07:31 +02:00 |
|
DL6ER
|
784b8ba3c9
|
Differentiate between POST (error on existing) and PUT, PATCH (replace if existing) for domain lists. Also return GET style reponse on success.
Signed-off-by: DL6ER <dl6er@dl6er.de>
|
2020-06-17 20:07:30 +02:00 |
|
DL6ER
|
fa5f6cdcdf
|
Use booleans instead of string for controlling the blocking status. Return the GET response after a successful PATCH request.
Signed-off-by: DL6ER <dl6er@dl6er.de>
|
2020-06-17 20:07:30 +02:00 |
|
DL6ER
|
be3b4045ae
|
Add filtering for domainlist endpoints
Signed-off-by: DL6ER <dl6er@dl6er.de>
|
2020-06-17 00:44:44 +02:00 |
|
DL6ER
|
fc4f850259
|
Uniform GET and POST keys and rename /dns/status to /dns/blocking to avoid misunderstandings
Signed-off-by: DL6ER <dl6er@dl6er.de>
|
2020-06-16 23:44:48 +02:00 |
|
DL6ER
|
56fe849d83
|
Move white- and blacklist endpoints one level up
Signed-off-by: DL6ER <dl6er@dl6er.de>
|
2020-06-16 23:11:20 +02:00 |
|
DL6ER
|
2c78622cd2
|
Streamline /api/dns endpoints while writing the documentation for them
Signed-off-by: DL6ER <dl6er@dl6er.de>
|
2020-06-16 19:09:31 +02:00 |
|
DL6ER
|
67a0395390
|
Redirect PH7 errors into pihole-FTL.log (instead of showing in the browser output) and define gethostname() PHP function.
Signed-off-by: DL6ER <dl6er@dl6er.de>
|
2020-06-02 08:52:55 +02:00 |
|
DL6ER
|
cf5f3ef464
|
gcc-9 optimizations.
Signed-off-by: DL6ER <dl6er@dl6er.de>
|
2020-06-01 09:44:49 +02:00 |
|
DL6ER
|
de09b73eb7
|
Use embedded PH7 instead of external PHP-CGI interpreter.
Signed-off-by: DL6ER <dl6er@dl6er.de>
|
2020-05-30 15:44:16 +02:00 |
|
DL6ER
|
c92a0e4bc4
|
Generally assume authentication to ease the development phase until we are actually able to add authentication.
Signed-off-by: DL6ER <dl6er@dl6er.de>
|
2020-05-29 20:54:30 +02:00 |
|
DL6ER
|
2c6e2ae41f
|
Add NAPTR support for /api/stats/summary
Signed-off-by: DL6ER <dl6er@dl6er.de>
|
2020-05-29 00:42:35 +02:00 |
|
DL6ER
|
473a88f077
|
Remove React-specific index page rerouting.
Signed-off-by: DL6ER <dl6er@dl6er.de>
|
2020-05-29 00:24:00 +02:00 |
|
DL6ER
|
308c80bc5a
|
Add PHP support in Pi-hole' HTTP server.
Signed-off-by: DL6ER <dl6er@dl6er.de>
|
2020-05-28 23:59:52 +02:00 |
|