-
-
Notifications
You must be signed in to change notification settings - Fork 562
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
Tweak/custom dns #1472
Tweak/custom dns #1472
Conversation
…g this logic change prevents a misleading message being displayed to the user Signed-off-by: Adam Warner <[email protected]>
… if it is specified by the user Signed-off-by: Adam Warner <[email protected]>
This pull request has been mentioned on Pi-hole Userspace. There might be relevant details there: |
Co-authored-by: Adam Warner <[email protected]>
$success .= "Updating DNS settings failed. Result:"; | ||
$success .= implode($return); | ||
} | ||
$success .= htmlspecialchars(end($return))."<br>"; |
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.
So we always assume success now (if the checks above worked)?
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.
Well... this is how it was before the pihole
wrapper code was put in.
This pull request has been mentioned on Pi-hole Userspace. There might be relevant details there: https://discourse.pi-hole.net/t/pi-hole-5-1-released/35577/1 |
By submitting this pull request, I confirm the following:
git rebase
)What does this PR aim to accomplish?:
Addresses issues raised in this comment on discourse.
Seems that the PR that added the execution wrapped to the
pihole
command in the PHP introduced an issue with the error that is displayed back to the user (Despite completing successfully)Additionally I have tweaked the logic around custom ports, a port is only added to the address is it is explicitly added by the user.