Skip to content

Commit d7ec012

Browse files
authored
Merge pull request #2445 from pi-hole/development
Pi-hole FTL v6.2
2 parents a331322 + bc24e85 commit d7ec012

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

86 files changed

+6355
-3249
lines changed

.github/CODEOWNERS

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# see https://docs.github.com/en/repositories/managing-your-repositorys-settings-and-features/customizing-your-repository/about-code-owners#codeowners-syntax
2+
3+
# These owners will be the default owners for everything in
4+
# the repo. Unless a later match takes precedence,
5+
* @pi-hole/ftl-maintainers

.github/dependabot.yml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,6 @@ updates:
88
time: "10:00"
99
open-pull-requests-limit: 10
1010
target-branch: development
11-
reviewers:
12-
- "pi-hole/ftl-maintainers"
1311
pull-request-branch-name:
1412
# Separate sections of the branch name with a hyphen
1513
separator: "-"
@@ -25,8 +23,6 @@ updates:
2523
time: "10:00"
2624
open-pull-requests-limit: 10
2725
target-branch: development
28-
reviewers:
29-
- "pi-hole/ftl-maintainers"
3026
pull-request-branch-name:
3127
# Separate sections of the branch name with a hyphen
3228
separator: "-"

.github/workflows/openapi-validator.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ jobs:
1515
uses: actions/[email protected]
1616

1717
- name: Set up Node.js
18-
uses: actions/setup-node@v4.3.0
18+
uses: actions/setup-node@v4.4.0
1919
with:
2020
node-version: "20"
2121
cache: npm

CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,6 @@ set(CMAKE_C_STANDARD 17)
1616

1717
project(PIHOLE_FTL C)
1818

19-
set(DNSMASQ_VERSION pi-hole-v2.91)
19+
set(DNSMASQ_VERSION pi-hole-v2.92test8)
2020

2121
add_subdirectory(src)

package-lock.json

Lines changed: 60 additions & 15 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,6 @@
2121
},
2222
"devDependencies": {
2323
"openapi-enforcer": "^1.23.0",
24-
"openapi-examples-validator": "^5.0.0"
24+
"openapi-examples-validator": "^6.0.3"
2525
}
2626
}

src/api/api.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,6 @@
1010
#ifndef ROUTES_H
1111
#define ROUTES_H
1212

13-
// struct mg_connection
14-
#include "webserver/civetweb/civetweb.h"
1513
// type cJSON
1614
#include "webserver/cJSON/cJSON.h"
1715
#include "webserver/http-common.h"

src/api/config.c

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,6 @@ static struct {
6262
{ "OpenDNS (ECS, DNSSEC)", { "208.67.222.222", "208.67.220.220" }, {"2620:119:35::35", "2620:119:53::53"} },
6363
{ "Level3", { "4.2.2.1", "4.2.2.2" }, { NULL, NULL } },
6464
{ "Comodo", { "8.26.56.26", "8.20.247.20" }, { NULL, NULL} },
65-
{ "DNS.WATCH (DNSSEC)", { "84.200.69.80", "84.200.70.40" }, { "2001:1608:10:25:0:0:1c04:b12f", "2001:1608:10:25:0:0:9249:d69b" } },
6665
{ "Quad9 (filtered, DNSSEC)", {"9.9.9.9", "149.112.112.112" }, { "2620:fe::fe", "2620:fe::9" } },
6766
{ "Quad9 (unfiltered, no DNSSEC)", { "9.9.9.10", "149.112.112.10" }, { "2620:fe::10", "2620:fe::fe:10" } },
6867
{ "Quad9 (filtered, ECS, DNSSEC)", { "9.9.9.11", "149.112.112.11" }, { "2620:fe::11", "2620:fe::fe:11" } },
@@ -232,8 +231,8 @@ static const char *getJSONvalue(struct conf_item *conf_item, cJSON *elem, struct
232231
elem->valuedouble < 0 || elem->valuedouble > UINT16_MAX)
233232
return "not of type unsigned integer (16bit)";
234233
// Set item
235-
conf_item->v.ui = elem->valuedouble;
236-
log_debug(DEBUG_CONFIG, "%s = %u", conf_item->k, conf_item->v.ui);
234+
conf_item->v.u16 = elem->valuedouble;
235+
log_debug(DEBUG_CONFIG, "%s = %u", conf_item->k, conf_item->v.u16);
237236
break;
238237
}
239238
case CONF_LONG:

src/api/docs/CMakeLists.txt

Lines changed: 36 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -9,36 +9,37 @@
99
# Please see LICENSE file for your rights under this license.
1010

1111
set(sources
12-
hex/index.html
13-
hex/index.css
14-
hex/pi-hole.js
15-
hex/external/rapidoc-min.js
16-
hex/external/rapidoc-min.js.map
17-
hex/external/highlight.min.js
18-
hex/external/highlight-default.min.css
19-
hex/images/logo.svg
20-
hex/specs/action.yaml
21-
hex/specs/auth.yaml
22-
hex/specs/clients.yaml
23-
hex/specs/config.yaml
24-
hex/specs/common.yaml
25-
hex/specs/dhcp.yaml
26-
hex/specs/dns.yaml
27-
hex/specs/docs.yaml
28-
hex/specs/domains.yaml
29-
hex/specs/endpoints.yaml
30-
hex/specs/groups.yaml
31-
hex/specs/history.yaml
32-
hex/specs/info.yaml
33-
hex/specs/lists.yaml
34-
hex/specs/logs.yaml
35-
hex/specs/main.yaml
36-
hex/specs/network.yaml
37-
hex/specs/padd.yaml
38-
hex/specs/queries.yaml
39-
hex/specs/search.yaml
40-
hex/specs/stats.yaml
41-
hex/specs/teleporter.yaml
12+
hex/index_html.h
13+
hex/index_css.h
14+
hex/pi-hole_js.h
15+
hex/external/rapidoc-min_js.h
16+
hex/external/rapidoc-min_js_map.h
17+
hex/external/highlight_min_js.h
18+
hex/external/highlight-default_min_css.h
19+
hex/images/logo_svg.h
20+
hex/images/favicon_ico.h
21+
hex/specs/action_yaml.h
22+
hex/specs/auth_yaml.h
23+
hex/specs/clients_yaml.h
24+
hex/specs/config_yaml.h
25+
hex/specs/common_yaml.h
26+
hex/specs/dhcp_yaml.h
27+
hex/specs/dns_yaml.h
28+
hex/specs/docs_yaml.h
29+
hex/specs/domains_yaml.h
30+
hex/specs/endpoints_yaml.h
31+
hex/specs/groups_yaml.h
32+
hex/specs/history_yaml.h
33+
hex/specs/info_yaml.h
34+
hex/specs/lists_yaml.h
35+
hex/specs/logs_yaml.h
36+
hex/specs/main_yaml.h
37+
hex/specs/network_yaml.h
38+
hex/specs/padd_yaml.h
39+
hex/specs/queries_yaml.h
40+
hex/specs/search_yaml.h
41+
hex/specs/stats_yaml.h
42+
hex/specs/teleporter_yaml.h
4243
docs.c
4344
)
4445

@@ -53,10 +54,12 @@ find_program(RESOURCE_COMPILER xxd)
5354
file(GLOB_RECURSE COMPILED_RESOURCES RELATIVE "${CMAKE_CURRENT_SOURCE_DIR}/content" "content/*")
5455
foreach(INPUT_FILE ${COMPILED_RESOURCES})
5556
set(IN ${CMAKE_CURRENT_SOURCE_DIR}/content/${INPUT_FILE})
56-
set(OUTPUT_FILE ${CMAKE_CURRENT_SOURCE_DIR}/hex/${INPUT_FILE})
57+
string(REPLACE "." "_" INPUT_FILE_MODIFIED ${INPUT_FILE})
58+
string(REPLACE "/" "_" VARIABLE_NAME ${INPUT_FILE})
59+
set(OUTPUT_FILE ${CMAKE_CURRENT_SOURCE_DIR}/hex/${INPUT_FILE_MODIFIED}.h)
5760
add_custom_command(
58-
OUTPUT hex/${INPUT_FILE}
59-
COMMAND ${RESOURCE_COMPILER} -i < ${IN} > ${OUTPUT_FILE}
61+
OUTPUT hex/${INPUT_FILE_MODIFIED}.h
62+
COMMAND ${RESOURCE_COMPILER} -iC -n ${VARIABLE_NAME} - < ${IN} | sed "s/unsigned /static const unsigned /" > ${OUTPUT_FILE}
6063
COMMENT "Compiling ${INPUT_FILE}"
6164
VERBATIM)
6265
list(APPEND COMPILED_RESOURCES ${OUTPUT_FILE})
14.7 KB
Binary file not shown.

0 commit comments

Comments
 (0)