-
-
Notifications
You must be signed in to change notification settings - Fork 558
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
Changes in piholeStatus
and FTL API calls.
#2126
Conversation
This pull request has been mentioned on Pi-hole Userspace. There might be relevant details there: https://discourse.pi-hole.net/t/pi-hole-spamming-auth-log/53637/4 |
edc5c98
to
c644882
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not sure those 2 errors are related (maybe). Are you sure the Chrome error and PHP warnings (logs) happened at the same time? |
- Using constants for default values - Remove unnecessary variable - Replace `piholeStatusAPI()` with a call to FTL API - Transfer `api.php?status` code from `api.php` to `api_FTL.php` - Change `piholeStatus()` to use FTL info (no need to use `pihole`). Signed-off-by: RD WebDesign <github@rdwebdesign.com.br>
Signed-off-by: RD WebDesign <github@rdwebdesign.com.br>
8ea3dba
to
b09178f
Compare
After undoing the changes to |
Are there any news as to when we can except this to be included in a release? |
Pi-hole has a small team of developers (all of whom have regular jobs outside of Pi-hole). We do not have scheduled release dates and cannot predict accurately when the next release will occur. |
That's what I thought. Still tanks for your reply. This is fixed in the current Version of Pi-hole. There is no need to use the following fix.Here is the Fix I'm using (for Debian based systems):
How to revert the changes:you should probably change it back after we receive an update (v. > 5.11). I'm actually not sure what else is tied to this 'fix'. I'm running pihole inside a LXC container and so it does not affect any of my other systems.
|
This pull request has been mentioned on Pi-hole Userspace. There might be relevant details there: https://discourse.pi-hole.net/t/pi-hole-ftl-v5-15-web-v5-12-and-core-v5-10-released/54987/1 |
By submitting this pull request, I confirm the following:
git rebase
)git commit --signoff
)What does this PR aim to accomplish?:
Attempts to minimize the side effects seen in pi-hole/pi-hole#4615.
In addition, this PR adds changes to socket-related functions. Also, some global variables were replace by constants.
How does this PR accomplish the above?:
The
piholeStatus()
function is called very frequently to assure the dashboard shows the correct status.The original code uses shell command to retrieve the value (generating a lot of logs).
The new function uses a socket to call FTL directly.
The API is still the same. A few inner changes were introduced.
What documentation changes (if any) are needed to support this PR?:
None (no API calls were changed).