-
-
Notifications
You must be signed in to change notification settings - Fork 208
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'development-v6' into fix/delete_dhcp_lease
Signed-off-by: DL6ER <[email protected]>
- Loading branch information
Showing
158 changed files
with
13,160 additions
and
5,565 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,20 @@ | ||
{ | ||
"name": "FTL x86_64 Build Env", | ||
"image": "ghcr.io/pi-hole/ftl-build:v2.3-alpine", | ||
"image": "ghcr.io/pi-hole/ftl-build:v2.4.1", | ||
"runArgs": [ "--cap-add=SYS_PTRACE", "--security-opt", "seccomp=unconfined" ], | ||
"extensions": [ | ||
"jetmartin.bats", | ||
"ms-vscode.cpptools", | ||
"ms-vscode.cmake-tools", | ||
"eamodio.gitlens" | ||
], | ||
"customizations": { | ||
"vscode": { | ||
"extensions": [ | ||
"jetmartin.bats", | ||
"ms-vscode.cpptools", | ||
"ms-vscode.cmake-tools", | ||
"eamodio.gitlens" | ||
] | ||
} | ||
}, | ||
"mounts": [ | ||
"type=bind,source=/home/${localEnv:USER}/.ssh,target=/root/.ssh,readonly" | ||
"type=bind,source=/home/${localEnv:USER}/.ssh,target=/root/.ssh,readonly", | ||
"type=bind,source=/var/www/html,target=/var/www/html,readonly" | ||
] | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,3 +5,4 @@ nd | |
doubleclick | ||
requestor | ||
requestors | ||
punycode |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -119,9 +119,9 @@ jobs: | |
- | ||
name: Store binary artifacts for later deployoment | ||
if: github.event_name != 'pull_request' | ||
uses: actions/upload-artifact@v3.1.3 | ||
uses: actions/upload-artifact@v4.0.0 | ||
with: | ||
name: tmp-storage | ||
name: ${{ matrix.bin_name }}-binary | ||
path: '${{ matrix.bin_name }}*' | ||
- | ||
name: Extract documentation files from container | ||
|
@@ -131,9 +131,9 @@ jobs: | |
- | ||
name: Upload documentation artifacts for deployoment | ||
if: github.event_name != 'pull_request' && matrix.platform == 'linux/amd64' | ||
uses: actions/upload-artifact@v3.1.3 | ||
uses: actions/upload-artifact@v4.0.0 | ||
with: | ||
name: tmp-storage | ||
name: pihole-api-docs | ||
path: 'api-docs.tar.gz' | ||
|
||
deploy: | ||
|
@@ -146,15 +146,17 @@ jobs: | |
uses: actions/[email protected] | ||
- | ||
name: Get Binaries and documentation built in previous jobs | ||
uses: actions/download-artifact@v3.0.2 | ||
uses: actions/download-artifact@v4.1.0 | ||
id: download | ||
with: | ||
name: tmp-storage | ||
path: ftl-builds/ | ||
path: ftl_builds/ | ||
pattern: pihole-* | ||
merge-multiple: true | ||
- | ||
name: Display structure of downloaded files | ||
run: ls -R | ||
working-directory: ${{steps.download.outputs.download-path}} | ||
|
||
- | ||
name: Install SSH Key | ||
uses: benoitchantre/[email protected] | ||
|
@@ -163,22 +165,22 @@ jobs: | |
known-hosts: ${{ secrets.KNOWN_HOSTS }} | ||
- | ||
name: Untar documentation files | ||
working-directory: ${{steps.download.outputs.download-path}} | ||
working-directory: ftl_builds/ | ||
run: | | ||
mkdir docs/ | ||
tar xzvf api-docs.tar.gz -C docs/ | ||
- | ||
name: Display structure of files ready for upload | ||
run: ls -R | ||
working-directory: ${{steps.download.outputs.download-path}} | ||
working-directory: ftl_builds/ | ||
- | ||
name: Transfer Builds to Pi-hole server for pihole checkout | ||
if: github.actor != 'dependabot[bot]' | ||
env: | ||
USER: ${{ secrets.SSH_USER }} | ||
HOST: ${{ secrets.SSH_HOST }} | ||
TARGET_DIR: ${{ needs.smoke-tests.outputs.OUTPUT_DIR }} | ||
SOURCE_DIR: ${{ steps.download.outputs.download-path }} | ||
SOURCE_DIR: ftl_builds/ | ||
run: | | ||
bash ./deploy.sh | ||
- | ||
|
@@ -187,4 +189,4 @@ jobs: | |
uses: softprops/action-gh-release@v1 | ||
with: | ||
files: | | ||
${{ steps.download.outputs.download-path }}/* | ||
ftl_builds/* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
35 changes: 35 additions & 0 deletions
35
patch/civetweb/0001-Allow-extended-ASCII-characters-in-URIs.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
From ebb27741b10ed2eac51ac356708800ae96cdd17a Mon Sep 17 00:00:00 2001 | ||
From: DL6ER <[email protected]> | ||
Date: Tue, 31 Oct 2023 08:35:31 +0100 | ||
Subject: [PATCH] Allow extended ASCII characters in URIs | ||
|
||
Signed-off-by: DL6ER <[email protected]> | ||
--- | ||
src/webserver/civetweb/civetweb.c | 4 ++-- | ||
1 file changed, 2 insertions(+), 2 deletions(-) | ||
|
||
diff --git a/src/webserver/civetweb/civetweb.c b/src/webserver/civetweb/civetweb.c | ||
index 9b0c6308..5320c4d4 100644 | ||
--- a/src/webserver/civetweb/civetweb.c | ||
+++ b/src/webserver/civetweb/civetweb.c | ||
@@ -10734,7 +10734,7 @@ skip_to_end_of_word_and_terminate(char **ppw, int eol) | ||
{ | ||
/* Forward until a space is found - use isgraph here */ | ||
/* See http://www.cplusplus.com/reference/cctype/ */ | ||
- while (isgraph((unsigned char)**ppw)) { | ||
+ while ((unsigned char)**ppw > 127 || isgraph((unsigned char)**ppw)) { | ||
(*ppw)++; | ||
} | ||
|
||
@@ -18473,7 +18473,7 @@ get_uri_type(const char *uri) | ||
* and % encoded symbols. | ||
*/ | ||
for (i = 0; uri[i] != 0; i++) { | ||
- if (uri[i] < 33) { | ||
+ if ((unsigned char)uri[i] < 33) { | ||
/* control characters and spaces are invalid */ | ||
return 0; | ||
} | ||
-- | ||
2.34.1 | ||
|
29 changes: 0 additions & 29 deletions
29
patch/civetweb/0001-Do-not-try-to-guess-server-hostname-in-Civetweb-when.patch
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.