-
-
Notifications
You must be signed in to change notification settings - Fork 196
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Do not create FTL.port
file anymore
#1445
Conversation
Signed-off-by: Christian König <ckoenig@posteo.de>
Signed-off-by: Christian König <ckoenig@posteo.de>
@yubiuser did you already do the core changes but forget to PR? I also need to do update docker stuff, too. |
Signed-off-by: Adam Warner <me@adamwarner.co.uk>
I have the code and the branch, but did not open a PR yet because I have |
Tiny regression: When the port is changed in the config file, web UI and others will get a wrong port until FTL is restarted. |
I notice the opposite: Edit: |
Good catch. However, I think we can tolerate this. I've never seen anyone changing the port in the wild. |
This pull request has been mentioned on Pi-hole Userspace. There might be relevant details there: https://discourse.pi-hole.net/t/padd-broken-after-latest-updates/58461/2 |
This pull request has been mentioned on Pi-hole Userspace. There might be relevant details there: https://discourse.pi-hole.net/t/padd-broken-after-latest-updates/58461/5 |
By submitting this pull request, I confirm the following (please check boxes, eg [X]) Failure to fill the template will close your PR:
Please submit all pull requests against the
development
branch. Failure to do so will delay or deny your requestHow familiar are you with the codebase?: 5
FTL
used to write its API port to/run/FTL.port
(or whatever was configured inpihole-FTL.conf
as path ofPORTFILE
). This was meant as a way to allowcore
andweb
to get the current/configured port. However, this is a unnecessary step, becauseFTL
will use the default port4711
unlessFTLPORT
is set inpihole-FTL.conf
. If this is set,web
andcore
can simply take the value from this config file instead of doing a detour toFTL.port
.Corresponding PRs: pi-hole/web#2371 and pi-hole/pi-hole#4945
Documentation at: pi-hole/docs#778
While removing the code for the port file, I noticed we have an old
FTLtest.sh
which was not used within FTL but as a guidance for users how to interact with the API. I don't think it's much of a use today.This template was created based on the work of
udemy-dl
.